<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
                "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
  <title>Description of das_gui</title>
  <meta name="keywords" content="das_gui">
  <meta name="description" content="DAS_GUI main GUI of DASMiner Browser">
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <meta name="generator" content="m2html &copy; 2003 Guillaume Flandin">
  <meta name="robots" content="index, follow">
  <link type="text/css" rel="stylesheet" href="../m2html.css">
</head>
<body>
<a name="_top"></a>
<div><a href="../index.html">Home</a> &gt;  <a href="index.html">code</a> &gt; das_gui.m</div>

<!--<table width="100%"><tr><td align="left"><a href="../index.html"><img alt="<" border="0" src="../left.png">&nbsp;Master index</a></td>
<td align="right"><a href="index.html">Index for code&nbsp;<img alt=">" border="0" src="../right.png"></a></td></tr></table>-->

<h1>das_gui
</h1>

<h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="box"><strong>DAS_GUI main GUI of DASMiner Browser</strong></div>

<h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="box"><strong>function varargout = das_gui(varargin) </strong></div>

<h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="fragment"><pre class="comment"> DAS_GUI main GUI of DASMiner Browser 
      DAS_GUI, by itself, creates a new DAS_GUI or raises the existing
      singleton*.

      H = DAS_GUI returns the handle to a new DAS_GUI or the handle to
      the existing singleton*.

      DAS_GUI('CALLBACK',hObject,eventData,handles,...) calls the local
      function named CALLBACK in DAS_GUI.M with the given input arguments.

      DAS_GUI('Property','Value',...) creates a new DAS_GUI or raises the
      existing singleton*.  Starting from the left, property value pairs are
      applied to the GUI before das_gui_OpeningFunction gets called.  An
      unrecognized property name or invalid value makes property application
      stop.  All inputs are passed to das_gui_OpeningFcn via varargin.

      *See GUI Options on GUIDE's Tools menu.  Choose &quot;GUI allows only one
      instance to run (singleton)&quot;.

 See also: <a href="searchRegistry_gui.html" class="code" title="function varargout = searchRegistry_gui(varargin)">SEARCHREGISTRY_GUI</a>
 Last Modified by GUIDE v2.5 23-Jan-2009 17:32:28

    DASMiner: DAS library and browser for Matlab.
    Diogo Veiga, March 2008.</pre></div>

<!-- crossreference -->
<h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
This function calls:
<ul style="list-style-image:url(../matlabicon.gif)">
<li><a href="executeDASCommand.html" class="code" title="function [xmlStruct, xml,status,dasUrl] = executeDASCommand(serverURL,varargin)">executeDASCommand</a>	EXECUTEDASCOMMAND is the DAS Version 1.53 API.</li><li><a href="parseTypes.html" class="code" title="function [features]= parseTypes(dasXML)">parseTypes</a>	PARSETYPES parses DAS XML generated by a 'type' query to get available features</li><li><a href="populateServerMenu.html" class="code" title="function populateServerMenu(hServerMenu)">populateServerMenu</a>	POPULATESERVERMENU reads available DAS services for browsing in DASMiner</li><li><a href="queryFeatures.html" class="code" title="function queryFeatures(hObject,handles)">queryFeatures</a>	QUERYFEATURES used by DASMiner Browser for managing a DAS feature query</li><li><a href="searchRegistry_gui.html" class="code" title="function varargout = searchRegistry_gui(varargin)">searchRegistry_gui</a>	SEARCHREGISTRY_GUI is the GUI for DAS Registry search in Browser</li><li><a href="showinfowindow.html" class="code" title="function f = showinfowindow(msg,wtitle,handleDispGUI)">showinfowindow</a>	SHOWINFOWINDOW creates a small dialog window which displays a user-defined message.</li></ul>
This function is called by:
<ul style="list-style-image:url(../matlabicon.gif)">
</ul>
<!-- crossreference -->

<h2><a name="_subfunctions"></a>SUBFUNCTIONS <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<ul style="list-style-image:url(../matlabicon.gif)">
<li><a href="#_sub1" class="code">function das_gui_OpeningFcn(hObject, eventdata, handles, varargin)</a></li><li><a href="#_sub2" class="code">function varargout = das_gui_OutputFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub3" class="code">function listbox1_Callback(hObject, eventdata, handles)</a></li><li><a href="#_sub4" class="code">function listbox1_CreateFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub5" class="code">function slider1_Callback(hObject, eventdata, handles)</a></li><li><a href="#_sub6" class="code">function slider1_CreateFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub7" class="code">function pushbutton2_Callback(hObject, eventdata, handles)</a></li><li><a href="#_sub8" class="code">function listbox2_Callback(hObject, eventdata, handles)</a></li><li><a href="#_sub9" class="code">function listbox2_CreateFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub10" class="code">function listbox_Links_Callback(hObject, eventdata, handles)</a></li><li><a href="#_sub11" class="code">function listbox_Links_CreateFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub12" class="code">function popupmenu_Server_Callback(hObject, eventdata, handles)</a></li><li><a href="#_sub13" class="code">function popupmenu_Server_CreateFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub14" class="code">function popupmenu_DSN_Callback(hObject, eventdata, handles)</a></li><li><a href="#_sub15" class="code">function popupmenu_DSN_CreateFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub16" class="code">function popupmenu_SegDef_Callback(hObject, eventdata, handles)</a></li><li><a href="#_sub17" class="code">function popupmenu_SegDef_CreateFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub18" class="code">function field_Chr_Callback(hObject, eventdata, handles)</a></li><li><a href="#_sub19" class="code">function field_Chr_CreateFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub20" class="code">function field_Start_Callback(hObject, eventdata, handles)</a></li><li><a href="#_sub21" class="code">function field_Start_CreateFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub22" class="code">function field_Stop_Callback(hObject, eventdata, handles)</a></li><li><a href="#_sub23" class="code">function field_Stop_CreateFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub24" class="code">function field_ID_Callback(hObject, eventdata, handles)</a></li><li><a href="#_sub25" class="code">function field_ID_CreateFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub26" class="code">function listbox_Feat_Callback(hObject, eventdata, handles)</a></li><li><a href="#_sub27" class="code">function listbox_Feat_CreateFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub28" class="code">function pushbutton_Query_Callback(hObject, eventdata, handles)</a></li><li><a href="#_sub29" class="code">function popupmenu_Comm_Callback(hObject, eventdata, handles)</a></li><li><a href="#_sub30" class="code">function popupmenu_Comm_CreateFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub31" class="code">function field_XMLDisp_Callback(hObject, eventdata, handles)</a></li><li><a href="#_sub32" class="code">function field_XMLDisp_CreateFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub33" class="code">function slider3_Callback(hObject, eventdata, handles)</a></li><li><a href="#_sub34" class="code">function slider3_CreateFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub35" class="code">function pushbutton_Reset_Callback(hObject, eventdata, handles)</a></li><li><a href="#_sub36" class="code">function pushbutton_ClearDisplay_Callback(hObject, eventdata, handles)</a></li><li><a href="#_sub37" class="code">function field_Chrom_Callback(hObject, eventdata, handles)</a></li><li><a href="#_sub38" class="code">function field_Chrom_CreateFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub39" class="code">function edit13_Callback(hObject, eventdata, handles)</a></li><li><a href="#_sub40" class="code">function edit13_CreateFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub41" class="code">function edit14_Callback(hObject, eventdata, handles)</a></li><li><a href="#_sub42" class="code">function edit14_CreateFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub43" class="code">function popupmenu_FeatOptions_Callback(hObject, eventdata, handles)</a></li><li><a href="#_sub44" class="code">function popupmenu_FeatOptions_CreateFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub45" class="code">function popupmenu_FeatOptions2_Callback(hObject, eventdata, handles)</a></li><li><a href="#_sub46" class="code">function popupmenu_FeatOptions2_CreateFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub47" class="code">function [status] = populateFeaturesList(handles)</a></li><li><a href="#_sub48" class="code">function resetXMLDispPanel(handles)</a></li><li><a href="#_sub49" class="code">function resetSegmPanel(handles)</a></li><li><a href="#_sub50" class="code">function resetFeatPanel(handles)</a></li><li><a href="#_sub51" class="code">function resetIDdefPanel(handles)</a></li><li><a href="#_sub52" class="code">function resetDNAdefPanel(handles)</a></li><li><a href="#_sub53" class="code">function [hDial] = openRunningDialog</a></li><li><a href="#_sub54" class="code">function [isOkay] = checkDASCommand(xmlS,status)</a></li><li><a href="#_sub55" class="code">function field_timeout_Callback(hObject, eventdata, handles)</a></li><li><a href="#_sub56" class="code">function field_timeout_CreateFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub57" class="code">function pushbutton8_Callback(hObject, eventdata, handles)</a></li><li><a href="#_sub58" class="code">function figure1_CreateFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub59" class="code">function figure1_CloseRequestFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub60" class="code">function closeGUI(src,evnt)</a></li><li><a href="#_sub61" class="code">function pushbutton_infoServer_ButtonDownFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub62" class="code">function pushbutton_Query_CreateFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub63" class="code">function pushbutton_infoServer_CreateFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub64" class="code">function resetServerPanel(handles)</a></li><li><a href="#_sub65" class="code">function pushbutton_infoServer_Callback(hObject, eventdata, handles)</a></li><li><a href="#_sub66" class="code">function pushbutton_Reset_CreateFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub67" class="code">function pushbutton_ClearDisplay_CreateFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub68" class="code">function pushbutton_SendBrowser_Callback(hObject, eventdata, handles)</a></li><li><a href="#_sub69" class="code">function pushbutton_SendXMLFile_Callback(hObject, eventdata, handles)</a></li><li><a href="#_sub70" class="code">function pushbutton_SendBrowser_CreateFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub71" class="code">function pushbutton_SendXMLFile_CreateFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub72" class="code">function populateSegDefMenu(handles)</a></li><li><a href="#_sub73" class="code">function pushbutton_infoCS_Callback(hObject, eventdata, handles)</a></li><li><a href="#_sub74" class="code">function pushbutton_infoCS_CreateFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub75" class="code">function configureInfoCSButton(handles,panel)</a></li><li><a href="#_sub76" class="code">function pushbutton_infoCS2_Callback(hObject, eventdata, handles)</a></li><li><a href="#_sub77" class="code">function pushbutton_infoCS2_CreateFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub78" class="code">function figure1_ResizeFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub79" class="code">function resizeButtonImage(hButton,width,height)</a></li><li><a href="#_sub80" class="code">function pushbutton_getURL_Callback(hObject, eventdata, handles)</a></li><li><a href="#_sub81" class="code">function pushbutton_getURL_CreateFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub82" class="code">function uipanel_XMLDisp_CreateFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub83" class="code">function uipanel_DasClient_ResizeFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub84" class="code">function pushbutton_Query_ButtonDownFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub85" class="code">function pushbutton_Query_KeyPressFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub86" class="code">function field_queryURL_Callback(hObject, eventdata, handles)</a></li><li><a href="#_sub87" class="code">function field_queryURL_CreateFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub88" class="code">function setResultsFields(hObject,handles,xml,url)</a></li><li><a href="#_sub89" class="code">function dasMiner_logo_CreateFcn(hObject, eventdata, handles)</a></li></ul>
<h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="fragment"><pre>0001 <a name="_sub0" href="#_subfunctions" class="code">function varargout = das_gui(varargin)</a>
0002 <span class="comment">% DAS_GUI main GUI of DASMiner Browser</span>
0003 <span class="comment">%      DAS_GUI, by itself, creates a new DAS_GUI or raises the existing</span>
0004 <span class="comment">%      singleton*.</span>
0005 <span class="comment">%</span>
0006 <span class="comment">%      H = DAS_GUI returns the handle to a new DAS_GUI or the handle to</span>
0007 <span class="comment">%      the existing singleton*.</span>
0008 <span class="comment">%</span>
0009 <span class="comment">%      DAS_GUI('CALLBACK',hObject,eventData,handles,...) calls the local</span>
0010 <span class="comment">%      function named CALLBACK in DAS_GUI.M with the given input arguments.</span>
0011 <span class="comment">%</span>
0012 <span class="comment">%      DAS_GUI('Property','Value',...) creates a new DAS_GUI or raises the</span>
0013 <span class="comment">%      existing singleton*.  Starting from the left, property value pairs are</span>
0014 <span class="comment">%      applied to the GUI before das_gui_OpeningFunction gets called.  An</span>
0015 <span class="comment">%      unrecognized property name or invalid value makes property application</span>
0016 <span class="comment">%      stop.  All inputs are passed to das_gui_OpeningFcn via varargin.</span>
0017 <span class="comment">%</span>
0018 <span class="comment">%      *See GUI Options on GUIDE's Tools menu.  Choose &quot;GUI allows only one</span>
0019 <span class="comment">%      instance to run (singleton)&quot;.</span>
0020 <span class="comment">%</span>
0021 <span class="comment">% See also: SEARCHREGISTRY_GUI</span>
0022 <span class="comment">% Last Modified by GUIDE v2.5 23-Jan-2009 17:32:28</span>
0023 <span class="comment">%</span>
0024 <span class="comment">%    DASMiner: DAS library and browser for Matlab.</span>
0025 <span class="comment">%    Diogo Veiga, March 2008.</span>
0026 
0027 <span class="comment">% Begin initialization code - DO NOT EDIT</span>
0028 gui_Singleton = 1;
0029 gui_State = struct(<span class="string">'gui_Name'</span>,       mfilename, <span class="keyword">...</span>
0030                    <span class="string">'gui_Singleton'</span>,  gui_Singleton, <span class="keyword">...</span>
0031                    <span class="string">'gui_OpeningFcn'</span>, @<a href="#_sub1" class="code" title="subfunction das_gui_OpeningFcn(hObject, eventdata, handles, varargin)">das_gui_OpeningFcn</a>, <span class="keyword">...</span>
0032                    <span class="string">'gui_OutputFcn'</span>,  @<a href="#_sub2" class="code" title="subfunction varargout = das_gui_OutputFcn(hObject, eventdata, handles)">das_gui_OutputFcn</a>, <span class="keyword">...</span>
0033                    <span class="string">'gui_LayoutFcn'</span>,  [] , <span class="keyword">...</span>
0034                    <span class="string">'gui_Callback'</span>,   []);
0035 <span class="keyword">if</span> nargin &amp;&amp; ischar(varargin{1})
0036     gui_State.gui_Callback = str2func(varargin{1});
0037 <span class="keyword">end</span>
0038 
0039 <span class="keyword">if</span> nargout
0040     [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
0041 <span class="keyword">else</span>
0042     gui_mainfcn(gui_State, varargin{:});
0043 <span class="keyword">end</span>
0044 
0045 <span class="comment">% End initialization code - DO NOT EDIT</span>
0046 
0047 
0048 <span class="comment">% --- Executes just before das_gui is made visible.</span>
0049 <a name="_sub1" href="#_subfunctions" class="code">function das_gui_OpeningFcn(hObject, eventdata, handles, varargin)</a>
0050 <span class="comment">% This function has no output args, see OutputFcn.</span>
0051 <span class="comment">% hObject    handle to figure</span>
0052 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0053 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
0054 <span class="comment">% varargin   command line arguments to das_gui (see VARARGIN)</span>
0055 
0056 <span class="comment">% Choose default command line output for das_gui</span>
0057 handles.output = hObject;
0058 
0059 timeout = get(handles.field_timeout,<span class="string">'String'</span>);
0060 handles.timeout = str2double(timeout);
0061 
0062 <a href="#_sub79" class="code" title="subfunction resizeButtonImage(hButton,width,height)">resizeButtonImage</a>(handles.pushbutton_infoCS,16,16);
0063 <a href="#_sub79" class="code" title="subfunction resizeButtonImage(hButton,width,height)">resizeButtonImage</a>(handles.pushbutton_infoCS2,16,16);
0064 <a href="#_sub79" class="code" title="subfunction resizeButtonImage(hButton,width,height)">resizeButtonImage</a>(handles.pushbutton_ClearDisplay,32,32);
0065 <a href="#_sub79" class="code" title="subfunction resizeButtonImage(hButton,width,height)">resizeButtonImage</a>(handles.pushbutton_infoServer,32,32);
0066 <a href="#_sub79" class="code" title="subfunction resizeButtonImage(hButton,width,height)">resizeButtonImage</a>(handles.pushbutton_Reset,48,50);
0067 <a href="#_sub79" class="code" title="subfunction resizeButtonImage(hButton,width,height)">resizeButtonImage</a>(handles.pushbutton_Query,48,50);
0068 <a href="#_sub79" class="code" title="subfunction resizeButtonImage(hButton,width,height)">resizeButtonImage</a>(handles.pushbutton_SendBrowser,32,32);
0069 <a href="#_sub79" class="code" title="subfunction resizeButtonImage(hButton,width,height)">resizeButtonImage</a>(handles.pushbutton_SendXMLFile,32,32);
0070 <a href="#_sub79" class="code" title="subfunction resizeButtonImage(hButton,width,height)">resizeButtonImage</a>(handles.pushbutton_getURL,32,32);
0071 
0072 
0073 set(handles.text_ServerDesc,<span class="string">'Units'</span>,<span class="string">'characters'</span>);
0074 pos = get(handles.text_ServerDesc,<span class="string">'Position'</span>);
0075 set(handles.text_ServerDesc,<span class="string">'Position'</span>,[pos(1) pos(2) pos(3) 2]); <span class="comment">%set original pixel size</span>
0076 
0077 <span class="comment">% Update handles structure</span>
0078 guidata(hObject, handles);
0079 <span class="comment">% UIWAIT makes das_gui wait for user response (see UIRESUME)</span>
0080 <span class="comment">% uiwait(handles.figure1);</span>
0081 
0082 
0083 <span class="comment">% --- Outputs from this function are returned to the command line.</span>
0084 <a name="_sub2" href="#_subfunctions" class="code">function varargout = das_gui_OutputFcn(hObject, eventdata, handles) </a>
0085 <span class="comment">% varargout  cell array for returning output args (see VARARGOUT);</span>
0086 <span class="comment">% hObject    handle to figure</span>
0087 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0088 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
0089 
0090 <span class="comment">% Get default command line output from handles structure</span>
0091 varargout{1} = handles.output;
0092 
0093 
0094 <span class="comment">% --- Executes on selection change in listbox1.</span>
0095 <a name="_sub3" href="#_subfunctions" class="code">function listbox1_Callback(hObject, eventdata, handles)</a>
0096 <span class="comment">% hObject    handle to listbox1 (see GCBO)</span>
0097 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0098 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
0099 
0100 <span class="comment">% Hints: contents = get(hObject,'String') returns listbox1 contents as cell array</span>
0101 <span class="comment">%        contents{get(hObject,'Value')} returns selected item from listbox1</span>
0102 
0103 
0104 <span class="comment">% --- Executes during object creation, after setting all properties.</span>
0105 <a name="_sub4" href="#_subfunctions" class="code">function listbox1_CreateFcn(hObject, eventdata, handles)</a>
0106 <span class="comment">% hObject    handle to listbox1 (see GCBO)</span>
0107 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0108 <span class="comment">% handles    empty - handles not created until after all CreateFcns called</span>
0109 
0110 <span class="comment">% Hint: listbox controls usually have a white background on Windows.</span>
0111 <span class="comment">%       See ISPC and COMPUTER.</span>
0112 <span class="keyword">if</span> ispc &amp;&amp; isequal(get(hObject,<span class="string">'BackgroundColor'</span>), get(0,<span class="string">'defaultUicontrolBackgroundColor'</span>))
0113     set(hObject,<span class="string">'BackgroundColor'</span>,<span class="string">'white'</span>);
0114 <span class="keyword">end</span>
0115 
0116 
0117 <span class="comment">% --- Executes on slider movement.</span>
0118 <a name="_sub5" href="#_subfunctions" class="code">function slider1_Callback(hObject, eventdata, handles)</a>
0119 <span class="comment">% hObject    handle to slider1 (see GCBO)</span>
0120 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0121 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
0122 
0123 <span class="comment">% Hints: get(hObject,'Value') returns position of slider</span>
0124 <span class="comment">%        get(hObject,'Min') and get(hObject,'Max') to determine range of slider</span>
0125 
0126 
0127 <span class="comment">% --- Executes during object creation, after setting all properties.</span>
0128 <a name="_sub6" href="#_subfunctions" class="code">function slider1_CreateFcn(hObject, eventdata, handles)</a>
0129 <span class="comment">% hObject    handle to slider1 (see GCBO)</span>
0130 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0131 <span class="comment">% handles    empty - handles not created until after all CreateFcns called</span>
0132 
0133 <span class="comment">% Hint: slider controls usually have a light gray background.</span>
0134 <span class="keyword">if</span> isequal(get(hObject,<span class="string">'BackgroundColor'</span>), get(0,<span class="string">'defaultUicontrolBackgroundColor'</span>))
0135     set(hObject,<span class="string">'BackgroundColor'</span>,[.9 .9 .9]);
0136 <span class="keyword">end</span>
0137 
0138 
0139 <span class="comment">% --- Executes on button press in pushbutton2.</span>
0140 <a name="_sub7" href="#_subfunctions" class="code">function pushbutton2_Callback(hObject, eventdata, handles)</a>
0141 <span class="comment">% hObject    handle to pushbutton2 (see GCBO)</span>
0142 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0143 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
0144 
0145 
0146 <span class="comment">% --- Executes on selection change in listbox2.</span>
0147 <a name="_sub8" href="#_subfunctions" class="code">function listbox2_Callback(hObject, eventdata, handles)</a>
0148 <span class="comment">% hObject    handle to listbox2 (see GCBO)</span>
0149 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0150 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
0151 
0152 <span class="comment">% Hints: contents = get(hObject,'String') returns listbox2 contents as cell array</span>
0153 <span class="comment">%        contents{get(hObject,'Value')} returns selected item from listbox2</span>
0154 
0155 
0156 <span class="comment">% --- Executes during object creation, after setting all properties.</span>
0157 <a name="_sub9" href="#_subfunctions" class="code">function listbox2_CreateFcn(hObject, eventdata, handles)</a>
0158 <span class="comment">% hObject    handle to listbox2 (see GCBO)</span>
0159 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0160 <span class="comment">% handles    empty - handles not created until after all CreateFcns called</span>
0161 
0162 <span class="comment">% Hint: listbox controls usually have a white background on Windows.</span>
0163 <span class="comment">%       See ISPC and COMPUTER.</span>
0164 <span class="keyword">if</span> ispc &amp;&amp; isequal(get(hObject,<span class="string">'BackgroundColor'</span>), get(0,<span class="string">'defaultUicontrolBackgroundColor'</span>))
0165     set(hObject,<span class="string">'BackgroundColor'</span>,<span class="string">'white'</span>);
0166 <span class="keyword">end</span>
0167 
0168 
0169 <span class="comment">% --- Executes on selection change in listbox_Links.</span>
0170 <a name="_sub10" href="#_subfunctions" class="code">function listbox_Links_Callback(hObject, eventdata, handles)</a>
0171 <span class="comment">% hObject    handle to listbox_Links (see GCBO)</span>
0172 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0173 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
0174 
0175 <span class="comment">% Hints: contents = get(hObject,'String') returns listbox_Links contents as cell array</span>
0176 <span class="comment">%        contents{get(hObject,'Value')} returns selected item from listbox_Links</span>
0177 str = get(hObject, <span class="string">'String'</span>);
0178 val = get(hObject,<span class="string">'Value'</span>);
0179 <span class="keyword">switch</span> str{val};
0180     <span class="keyword">case</span> <span class="string">'Biodas.org'</span>
0181         web(<span class="string">'http://www.biodas.org/'</span>, <span class="string">'-browser'</span>);
0182     <span class="keyword">case</span> <span class="string">'DAS/1.53 Specification'</span>
0183         web(<span class="string">'http://www.biodas.org/documents/spec.html'</span>, <span class="string">'-browser'</span>);
0184 <span class="keyword">end</span>
0185 
0186 <span class="comment">% --- Executes during object creation, after setting all properties.</span>
0187 <a name="_sub11" href="#_subfunctions" class="code">function listbox_Links_CreateFcn(hObject, eventdata, handles)</a>
0188 <span class="comment">% hObject    handle to listbox_Links (see GCBO)</span>
0189 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0190 <span class="comment">% handles    empty - handles not created until after all CreateFcns called</span>
0191 
0192 <span class="comment">% Hint: listbox controls usually have a white background on Windows.</span>
0193 <span class="comment">%       See ISPC and COMPUTER.</span>
0194 <span class="keyword">if</span> ispc &amp;&amp; isequal(get(hObject,<span class="string">'BackgroundColor'</span>), get(0,<span class="string">'defaultUicontrolBackgroundColor'</span>))
0195     set(hObject,<span class="string">'BackgroundColor'</span>,<span class="string">'white'</span>);
0196 <span class="keyword">end</span>
0197 
0198 
0199 <span class="comment">% --- Executes on selection change in popupmenu_Server.</span>
0200 <a name="_sub12" href="#_subfunctions" class="code">function popupmenu_Server_Callback(hObject, eventdata, handles)</a>
0201 <span class="comment">% hObject    handle to popupmenu_Server (see GCBO)</span>
0202 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0203 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
0204 
0205 <span class="comment">% Hints: contents = get(hObject,'String') returns popupmenu_Server contents as cell array</span>
0206 <span class="comment">%        contents{get(hObject,'Value')} returns selected item from popupmenu_Server</span>
0207 
0208 <a href="#_sub50" class="code" title="subfunction resetFeatPanel(handles)">resetFeatPanel</a>(handles);
0209 <a href="#_sub49" class="code" title="subfunction resetSegmPanel(handles)">resetSegmPanel</a>(handles);
0210 <a href="#_sub48" class="code" title="subfunction resetXMLDispPanel(handles)">resetXMLDispPanel</a>(handles);
0211 <a href="#_sub64" class="code" title="subfunction resetServerPanel(handles)">resetServerPanel</a>(handles);
0212 
0213 str = get(hObject, <span class="string">'String'</span>);
0214 val = get(hObject,<span class="string">'Value'</span>);
0215 <span class="keyword">switch</span> str{val};
0216     <span class="keyword">case</span> <span class="string">'Choose Data Server ...'</span>
0217         handles.baseUrl = <span class="string">''</span>;
0218     <span class="keyword">case</span> <span class="string">'Add Data Server ...'</span>
0219         hGUI = <a href="searchRegistry_gui.html" class="code" title="function varargout = searchRegistry_gui(varargin)">searchRegistry_gui</a>(handles.popupmenu_Server);
0220         handlesRegGUI = guidata(hGUI);
0221         handles.handlesRegGUI = handlesRegGUI;
0222     <span class="keyword">otherwise</span>
0223         server = str{val};
0224         strServer = load(<span class="string">'localServ.mat'</span>, <span class="string">'locServ'</span>);
0225         locServ = strServer.locServ;
0226         
0227         <span class="keyword">for</span> i=1:size(locServ,2)
0228            <span class="keyword">if</span> (strcmp(locServ(i).title,server))
0229               handles.baseUrl = locServ(i).baseUrl;
0230               handles.dsn = locServ(i).dsn;
0231               handles.serverURI = locServ(i).uri;
0232               handles.serverCoordinates = locServ(i).coordinates;
0233               handles.serverCoordinatesURI = locServ(i).coordinatesURI;
0234               <span class="comment">%Populates Data Source Menu</span>
0235               set(handles.popupmenu_DSN,<span class="string">'String'</span>,locServ(i).dsn);
0236               set(handles.popupmenu_DSN,<span class="string">'Value'</span>,1);
0237               
0238               <span class="comment">%Populates Data Source Menu</span>
0239               handles.serverCapab = locServ(i).capabilities;
0240               set(handles.popupmenu_Comm,<span class="string">'String'</span>,[<span class="string">'Choose Command ...'</span> locServ(i).capabilities]);
0241               set(handles.popupmenu_Comm,<span class="string">'Value'</span>,1);
0242               set(handles.popupmenu_Comm,<span class="string">'Visible'</span>,<span class="string">'on'</span>);
0243 
0244               set(handles.pushbutton_infoServer,<span class="string">'Visible'</span>,<span class="string">'on'</span>);
0245               set(handles.text_ServerDesc,<span class="string">'String'</span>,locServ(i).desc);
0246               set(handles.text_ServerDesc,<span class="string">'Visible'</span>,<span class="string">'on'</span>);
0247               <span class="keyword">break</span>;
0248            <span class="keyword">end</span>
0249         <span class="keyword">end</span>
0250         
0251 <span class="keyword">end</span>
0252 guidata(hObject,handles);
0253 
0254 <span class="comment">% %Populates Data Source Menu</span>
0255 <span class="comment">% switch str{val};</span>
0256 <span class="comment">%     case 'Choose Data Server ...'</span>
0257 <span class="comment">%         handles.baseUrl = '';</span>
0258 <span class="comment">%         set(handles.popupmenu_DSN,'Visible','off');</span>
0259 <span class="comment">%         set(handles.popupmenu_Comm,'Visible','off');</span>
0260 <span class="comment">%     case 'Add Data Server ...'</span>
0261 <span class="comment">%</span>
0262 <span class="comment">%     otherwise</span>
0263 <span class="comment">%         hDial = openRunningDialog;</span>
0264 <span class="comment">%         [xmlS, xml, status] = executeDASCommand(handles.baseUrl,'command','dsn','timeout',handles.timeout);</span>
0265 <span class="comment">%         delete(hDial);</span>
0266 <span class="comment">%         clear hDial;</span>
0267 <span class="comment">%</span>
0268 <span class="comment">%         if (~checkDASCommand(xmlS,status))</span>
0269 <span class="comment">%             return;</span>
0270 <span class="comment">%         end</span>
0271 <span class="comment">%</span>
0272 <span class="comment">%         dsn = parseDataSources(xml);</span>
0273 <span class="comment">%         handles.dsnStr = dsn;</span>
0274 <span class="comment">%         guidata(hObject,handles);</span>
0275 <span class="comment">%         nDSN = numel(dsn);</span>
0276 <span class="comment">%         strOptions = 'Choose Data Source ...';</span>
0277 <span class="comment">%</span>
0278 <span class="comment">%         for i=1:nDSN</span>
0279 <span class="comment">%             strOptions = strvcat(strOptions, dsn(i).id);</span>
0280 <span class="comment">%         end</span>
0281 <span class="comment">%         set(handles.popupmenu_DSN,'String',cellstr(strOptions));</span>
0282 <span class="comment">%         set(handles.popupmenu_DSN,'Value',1);</span>
0283 <span class="comment">%         set(handles.popupmenu_DSN,'Visible','on');</span>
0284 <span class="comment">%</span>
0285 <span class="comment">% end</span>
0286 
0287 
0288 
0289 
0290 <span class="comment">% --- Executes during object creation, after setting all properties.</span>
0291 <a name="_sub13" href="#_subfunctions" class="code">function popupmenu_Server_CreateFcn(hObject, eventdata, handles)</a>
0292 <span class="comment">% hObject    handle to popupmenu_Server (see GCBO)</span>
0293 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0294 <span class="comment">% handles    empty - handles not created until after all CreateFcns called</span>
0295 
0296 <span class="comment">% Hint: popupmenu controls usually have a white background on Windows.</span>
0297 <span class="comment">%       See ISPC and COMPUTER.</span>
0298 <span class="keyword">if</span> ispc &amp;&amp; isequal(get(hObject,<span class="string">'BackgroundColor'</span>), get(0,<span class="string">'defaultUicontrolBackgroundColor'</span>))
0299     set(hObject,<span class="string">'BackgroundColor'</span>,<span class="string">'white'</span>);
0300 <span class="keyword">end</span>
0301 
0302 <a href="populateServerMenu.html" class="code" title="function populateServerMenu(hServerMenu)">populateServerMenu</a>(hObject);
0303 
0304 <span class="comment">% --- Executes on selection change in popupmenu_DSN.</span>
0305 <a name="_sub14" href="#_subfunctions" class="code">function popupmenu_DSN_Callback(hObject, eventdata, handles)</a>
0306 <span class="comment">% hObject    handle to popupmenu_DSN (see GCBO)</span>
0307 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0308 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
0309 
0310 <span class="comment">% Hints: contents = get(hObject,'String') returns popupmenu_DSN contents as cell array</span>
0311 <span class="comment">%        contents{get(hObject,'Value')} returns selected item from popupmenu_DSN</span>
0312 
0313 <span class="comment">% resetFeatPanel(handles);</span>
0314 <span class="comment">% resetSegmPanel(handles);</span>
0315 <span class="comment">% resetXMLDispPanel(handles);</span>
0316 <span class="comment">% set(handles.popupmenu_Comm,'Value',1);</span>
0317 <span class="comment">%</span>
0318 <span class="comment">% str = get(hObject, 'String');</span>
0319 <span class="comment">% val = get(hObject,'Value');</span>
0320 <span class="comment">%</span>
0321 <span class="comment">% nDSN = numel(handles.dsnStr);</span>
0322 <span class="comment">%</span>
0323 <span class="comment">% for i=1:nDSN</span>
0324 <span class="comment">%    if (strcmp(handles.dsnStr(i).id,str{val}))</span>
0325 <span class="comment">%        handles.mapmaster = handles.dsnStr(i).id;</span>
0326 <span class="comment">%        handles.dsn = str{val};</span>
0327 <span class="comment">%        guidata(hObject,handles);</span>
0328 <span class="comment">%    end</span>
0329 <span class="comment">% end</span>
0330 <span class="comment">%</span>
0331 <span class="comment">% set(handles.popupmenu_Comm,'Visible','on');</span>
0332 
0333 <span class="comment">% --- Executes during object creation, after setting all properties.</span>
0334 <a name="_sub15" href="#_subfunctions" class="code">function popupmenu_DSN_CreateFcn(hObject, eventdata, handles)</a>
0335 <span class="comment">% hObject    handle to popupmenu_DSN (see GCBO)</span>
0336 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0337 <span class="comment">% handles    empty - handles not created until after all CreateFcns called</span>
0338 
0339 <span class="comment">% Hint: popupmenu controls usually have a white background on Windows.</span>
0340 <span class="comment">%       See ISPC and COMPUTER.</span>
0341 <span class="keyword">if</span> ispc &amp;&amp; isequal(get(hObject,<span class="string">'BackgroundColor'</span>), get(0,<span class="string">'defaultUicontrolBackgroundColor'</span>))
0342     set(hObject,<span class="string">'BackgroundColor'</span>,<span class="string">'white'</span>);
0343 <span class="keyword">end</span>
0344 
0345 
0346 <span class="comment">% --- Executes on selection change in popupmenu_SegDef.</span>
0347 <a name="_sub16" href="#_subfunctions" class="code">function popupmenu_SegDef_Callback(hObject, eventdata, handles)</a>
0348 <span class="comment">% hObject    handle to popupmenu_SegDef (see GCBO)</span>
0349 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0350 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
0351 
0352 <span class="comment">% Hints: contents = get(hObject,'String') returns popupmenu_SegDef contents as cell array</span>
0353 <span class="comment">%        contents{get(hObject,'Value')} returns selected item from popupmenu_SegDef</span>
0354 contents = get(hObject, <span class="string">'String'</span>);
0355 val = get(hObject,<span class="string">'Value'</span>);
0356 
0357 <a href="#_sub51" class="code" title="subfunction resetIDdefPanel(handles)">resetIDdefPanel</a>(handles);
0358 <a href="#_sub52" class="code" title="subfunction resetDNAdefPanel(handles)">resetDNAdefPanel</a>(handles);
0359 
0360 commStr = get(handles.popupmenu_Comm,<span class="string">'String'</span>);
0361 
0362 
0363 <span class="keyword">if</span> (any(strcmpi(contents{val},{<span class="string">'Chromosome'</span>,<span class="string">'Clone'</span>, <span class="string">'Contig'</span>, <span class="string">'NT_Contig'</span>, <span class="string">'Scaffold'</span>})) ) <span class="comment">%open DNA definitions panel</span>
0364     set(handles.text16,<span class="string">'String'</span>,contents{val});
0365     <a href="#_sub75" class="code" title="subfunction configureInfoCSButton(handles,panel)">configureInfoCSButton</a>(handles,<span class="string">'DNA Panel'</span>);
0366     set(handles.uipanel_IDdefinition,<span class="string">'Visible'</span>,<span class="string">'off'</span>);
0367     set(handles.uipanel_DNAdefinitions,<span class="string">'Visible'</span>,<span class="string">'on'</span>);
0368     <span class="keyword">if</span>(strcmp(commStr{get(handles.popupmenu_Comm,<span class="string">'Value'</span>)},<span class="string">'features'</span>))
0369         set(handles.popupmenu_FeatOptions2,<span class="string">'Visible'</span>,<span class="string">'on'</span>);
0370     <span class="keyword">end</span>
0371 <span class="keyword">elseif</span> (any(strcmpi(contents{val},{<span class="string">'Protein Sequence'</span>,<span class="string">'Protein Structure'</span>, <span class="string">'Volume Map'</span>,<span class="string">'Gene_ID'</span>})) ) <span class="comment">%open ID definitions panel</span>
0372     <a href="#_sub75" class="code" title="subfunction configureInfoCSButton(handles,panel)">configureInfoCSButton</a>(handles,<span class="string">'ID Panel'</span>);
0373     set(handles.uipanel_DNAdefinitions,<span class="string">'Visible'</span>,<span class="string">'off'</span>);
0374     set(handles.uipanel_IDdefinition,<span class="string">'Visible'</span>,<span class="string">'on'</span>);
0375     <span class="keyword">if</span>(strcmp(commStr{get(handles.popupmenu_Comm,<span class="string">'Value'</span>)},<span class="string">'features'</span>))
0376         set(handles.popupmenu_FeatOptions,<span class="string">'Visible'</span>,<span class="string">'on'</span>);
0377     <span class="keyword">end</span>
0378 <span class="keyword">elseif</span> (strcmp(contents{val},<span class="string">'Choose data type...'</span>))
0379     set(handles.uipanel_DNAdefinitions,<span class="string">'Visible'</span>,<span class="string">'off'</span>);
0380     set(handles.uipanel_IDdefinition,<span class="string">'Visible'</span>,<span class="string">'off'</span>);
0381 <span class="keyword">end</span>
0382 
0383 
0384 <span class="comment">% --- Executes during object creation, after setting all properties.</span>
0385 <a name="_sub17" href="#_subfunctions" class="code">function popupmenu_SegDef_CreateFcn(hObject, eventdata, handles)</a>
0386 <span class="comment">% hObject    handle to popupmenu_SegDef (see GCBO)</span>
0387 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0388 <span class="comment">% handles    empty - handles not created until after all CreateFcns called</span>
0389 
0390 <span class="comment">% Hint: popupmenu controls usually have a white background on Windows.</span>
0391 <span class="comment">%       See ISPC and COMPUTER.</span>
0392 <span class="keyword">if</span> ispc &amp;&amp; isequal(get(hObject,<span class="string">'BackgroundColor'</span>), get(0,<span class="string">'defaultUicontrolBackgroundColor'</span>))
0393     set(hObject,<span class="string">'BackgroundColor'</span>,<span class="string">'white'</span>);
0394 <span class="keyword">end</span>
0395 
0396 
0397 
0398 
0399 
0400 <a name="_sub18" href="#_subfunctions" class="code">function field_Chr_Callback(hObject, eventdata, handles)</a>
0401 <span class="comment">% hObject    handle to field_Chr (see GCBO)</span>
0402 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0403 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
0404 
0405 <span class="comment">% Hints: get(hObject,'String') returns contents of field_Chr as text</span>
0406 <span class="comment">%        str2double(get(hObject,'String')) returns contents of field_Chr as a double</span>
0407 
0408 
0409 <span class="comment">% --- Executes during object creation, after setting all properties.</span>
0410 <a name="_sub19" href="#_subfunctions" class="code">function field_Chr_CreateFcn(hObject, eventdata, handles)</a>
0411 <span class="comment">% hObject    handle to field_Chr (see GCBO)</span>
0412 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0413 <span class="comment">% handles    empty - handles not created until after all CreateFcns called</span>
0414 
0415 <span class="comment">% Hint: edit controls usually have a white background on Windows.</span>
0416 <span class="comment">%       See ISPC and COMPUTER.</span>
0417 <span class="keyword">if</span> ispc &amp;&amp; isequal(get(hObject,<span class="string">'BackgroundColor'</span>), get(0,<span class="string">'defaultUicontrolBackgroundColor'</span>))
0418     set(hObject,<span class="string">'BackgroundColor'</span>,<span class="string">'white'</span>);
0419 <span class="keyword">end</span>
0420 
0421 
0422 
0423 <a name="_sub20" href="#_subfunctions" class="code">function field_Start_Callback(hObject, eventdata, handles)</a>
0424 <span class="comment">% hObject    handle to field_Start (see GCBO)</span>
0425 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0426 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
0427 
0428 <span class="comment">% Hints: get(hObject,'String') returns contents of field_Start as text</span>
0429 <span class="comment">%        str2double(get(hObject,'String')) returns contents of field_Start as a double</span>
0430 
0431 
0432 <span class="comment">% --- Executes during object creation, after setting all properties.</span>
0433 <a name="_sub21" href="#_subfunctions" class="code">function field_Start_CreateFcn(hObject, eventdata, handles)</a>
0434 <span class="comment">% hObject    handle to field_Start (see GCBO)</span>
0435 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0436 <span class="comment">% handles    empty - handles not created until after all CreateFcns called</span>
0437 
0438 <span class="comment">% Hint: edit controls usually have a white background on Windows.</span>
0439 <span class="comment">%       See ISPC and COMPUTER.</span>
0440 <span class="keyword">if</span> ispc &amp;&amp; isequal(get(hObject,<span class="string">'BackgroundColor'</span>), get(0,<span class="string">'defaultUicontrolBackgroundColor'</span>))
0441     set(hObject,<span class="string">'BackgroundColor'</span>,<span class="string">'white'</span>);
0442 <span class="keyword">end</span>
0443 
0444 
0445 
0446 <a name="_sub22" href="#_subfunctions" class="code">function field_Stop_Callback(hObject, eventdata, handles)</a>
0447 <span class="comment">% hObject    handle to field_Stop (see GCBO)</span>
0448 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0449 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
0450 
0451 <span class="comment">% Hints: get(hObject,'String') returns contents of field_Stop as text</span>
0452 <span class="comment">%        str2double(get(hObject,'String')) returns contents of field_Stop as a double</span>
0453 
0454 
0455 <span class="comment">% --- Executes during object creation, after setting all properties.</span>
0456 <a name="_sub23" href="#_subfunctions" class="code">function field_Stop_CreateFcn(hObject, eventdata, handles)</a>
0457 <span class="comment">% hObject    handle to field_Stop (see GCBO)</span>
0458 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0459 <span class="comment">% handles    empty - handles not created until after all CreateFcns called</span>
0460 
0461 <span class="comment">% Hint: edit controls usually have a white background on Windows.</span>
0462 <span class="comment">%       See ISPC and COMPUTER.</span>
0463 <span class="keyword">if</span> ispc &amp;&amp; isequal(get(hObject,<span class="string">'BackgroundColor'</span>), get(0,<span class="string">'defaultUicontrolBackgroundColor'</span>))
0464     set(hObject,<span class="string">'BackgroundColor'</span>,<span class="string">'white'</span>);
0465 <span class="keyword">end</span>
0466 
0467 
0468 
0469 <a name="_sub24" href="#_subfunctions" class="code">function field_ID_Callback(hObject, eventdata, handles)</a>
0470 <span class="comment">% hObject    handle to field_ID (see GCBO)</span>
0471 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0472 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
0473 
0474 <span class="comment">% Hints: get(hObject,'String') returns contents of field_ID as text</span>
0475 <span class="comment">%        str2double(get(hObject,'String')) returns contents of field_ID as a double</span>
0476 handles.ID = get(hObject,<span class="string">'String'</span>);
0477 guidata(hObject,handles);
0478 
0479 <span class="comment">% --- Executes during object creation, after setting all properties.</span>
0480 <a name="_sub25" href="#_subfunctions" class="code">function field_ID_CreateFcn(hObject, eventdata, handles)</a>
0481 <span class="comment">% hObject    handle to field_ID (see GCBO)</span>
0482 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0483 <span class="comment">% handles    empty - handles not created until after all CreateFcns called</span>
0484 
0485 <span class="comment">% Hint: edit controls usually have a white background on Windows.</span>
0486 <span class="comment">%       See ISPC and COMPUTER.</span>
0487 <span class="keyword">if</span> ispc &amp;&amp; isequal(get(hObject,<span class="string">'BackgroundColor'</span>), get(0,<span class="string">'defaultUicontrolBackgroundColor'</span>))
0488     set(hObject,<span class="string">'BackgroundColor'</span>,<span class="string">'white'</span>);
0489 <span class="keyword">end</span>
0490 
0491 
0492 <span class="comment">% --- Executes on selection change in listbox_Feat.</span>
0493 <a name="_sub26" href="#_subfunctions" class="code">function listbox_Feat_Callback(hObject, eventdata, handles)</a>
0494 <span class="comment">% hObject    handle to listbox_Feat (see GCBO)</span>
0495 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0496 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
0497 
0498 <span class="comment">% Hints: contents = get(hObject,'String') returns listbox_Feat contents as cell array</span>
0499 <span class="comment">%        contents{get(hObject,'Value')} returns selected item from listbox_Feat</span>
0500 
0501 <span class="comment">% --- Executes during object creation, after setting all properties.</span>
0502 <a name="_sub27" href="#_subfunctions" class="code">function listbox_Feat_CreateFcn(hObject, eventdata, handles)</a>
0503 <span class="comment">% hObject    handle to listbox_Feat (see GCBO)</span>
0504 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0505 <span class="comment">% handles    empty - handles not created until after all CreateFcns called</span>
0506 
0507 <span class="comment">% Hint: listbox controls usually have a white background on Windows.</span>
0508 <span class="comment">%       See ISPC and COMPUTER.</span>
0509 <span class="keyword">if</span> ispc &amp;&amp; isequal(get(hObject,<span class="string">'BackgroundColor'</span>), get(0,<span class="string">'defaultUicontrolBackgroundColor'</span>))
0510     set(hObject,<span class="string">'BackgroundColor'</span>,<span class="string">'white'</span>);
0511 <span class="keyword">end</span>
0512 
0513 
0514 <span class="comment">% --- Executes on button press in pushbutton_Query.</span>
0515 <a name="_sub28" href="#_subfunctions" class="code">function pushbutton_Query_Callback(hObject, eventdata, handles)</a>
0516 <span class="comment">% hObject    handle to pushbutton_Query (see GCBO)</span>
0517 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0518 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
0519 
0520 <span class="keyword">if</span> (get(handles.popupmenu_Server,<span class="string">'Value'</span>) == 1)
0521     msgbox(<span class="string">'Select a DAS Server in the menu.'</span>,<span class="string">'Data Server Requested'</span>,<span class="string">'warn'</span>);
0522     <span class="keyword">return</span>
0523 <span class="keyword">end</span>
0524 
0525 <span class="keyword">if</span> (get(handles.popupmenu_Comm,<span class="string">'Value'</span>) == 1)
0526     msgbox(<span class="string">'Select a DAS command in the menu.'</span>,<span class="string">'Command Requested'</span>,<span class="string">'warn'</span>);
0527     <span class="keyword">return</span> 
0528 <span class="keyword">end</span>
0529 
0530 str = get(handles.popupmenu_Comm,<span class="string">'String'</span>);
0531 val = get(handles.popupmenu_Comm,<span class="string">'Value'</span>);
0532 handles.command = str{val};
0533 guidata(hObject,handles);
0534 
0535 <span class="keyword">if</span> (any(strcmpi(handles.command,{<span class="string">'dna'</span>, <span class="string">'sequence'</span>, <span class="string">'types'</span>, <span class="string">'features'</span>})) )
0536     str = get(handles.popupmenu_SegDef,<span class="string">'String'</span>);
0537     val = get(handles.popupmenu_SegDef,<span class="string">'Value'</span>);
0538     dataType = str{val};
0539 <span class="keyword">end</span>
0540 
0541 <span class="keyword">if</span> (any(strcmpi(handles.command,{<span class="string">'structure'</span>,<span class="string">'alignment'</span>,<span class="string">'interaction'</span>})) )
0542     <span class="keyword">if</span> (isempty(get(handles.field_ID,<span class="string">'String'</span>)))
0543         msgbox(<span class="string">'Fill out ID'</span>,<span class="string">'Data Requested'</span>,<span class="string">'warn'</span>);
0544         <span class="keyword">return</span>
0545     <span class="keyword">end</span>
0546 <span class="keyword">end</span>
0547 
0548 
0549 <span class="keyword">switch</span> handles.command
0550     <span class="keyword">case</span> <span class="string">'structure'</span>
0551         
0552         hDial = <a href="#_sub53" class="code" title="subfunction [hDial] = openRunningDialog">openRunningDialog</a>;
0553         [xmlS, xml, status,url] = executeDasCommand(handles.baseUrl,<span class="string">'command'</span>, <span class="string">'structure'</span>, <span class="string">'DSN'</span>, handles.dsn ,<span class="string">'segment'</span>,get(handles.field_ID,<span class="string">'String'</span>), <span class="keyword">...</span>
0554             <span class="string">'timeout'</span>,handles.timeout);
0555         delete(hDial);
0556         clear hDial;
0557         <span class="keyword">if</span> (~<a href="#_sub54" class="code" title="subfunction [isOkay] = checkDASCommand(xmlS,status)">checkDASCommand</a>(xmlS,status))
0558             <span class="keyword">return</span>;
0559         <span class="keyword">end</span>
0560         <a href="#_sub88" class="code" title="subfunction setResultsFields(hObject,handles,xml,url)">setResultsFields</a>(hObject,handles,xml,url);
0561                 
0562     <span class="keyword">case</span> <span class="string">'alignment'</span>
0563 
0564         hDial = <a href="#_sub53" class="code" title="subfunction [hDial] = openRunningDialog">openRunningDialog</a>;
0565         [xmlS, xml, status,url] = executeDasCommand(handles.baseUrl,<span class="string">'command'</span>, <span class="string">'alignment'</span>, <span class="string">'DSN'</span>, handles.dsn ,<span class="string">'segment'</span>,get(handles.field_ID,<span class="string">'String'</span>), <span class="keyword">...</span>
0566             <span class="string">'timeout'</span>,handles.timeout);
0567         delete(hDial);
0568         clear hDial;
0569         <span class="keyword">if</span> (~<a href="#_sub54" class="code" title="subfunction [isOkay] = checkDASCommand(xmlS,status)">checkDASCommand</a>(xmlS,status))
0570             <span class="keyword">return</span>;
0571         <span class="keyword">end</span>
0572         <a href="#_sub88" class="code" title="subfunction setResultsFields(hObject,handles,xml,url)">setResultsFields</a>(hObject,handles,xml,url);        
0573         
0574     <span class="keyword">case</span> <span class="string">'interaction'</span>
0575 
0576         hDial = <a href="#_sub53" class="code" title="subfunction [hDial] = openRunningDialog">openRunningDialog</a>;
0577         [xmlS, xml, status,url] = executeDasCommand(handles.baseUrl,<span class="string">'command'</span>, <span class="string">'interaction'</span>, <span class="string">'DSN'</span>, handles.dsn ,<span class="string">'segment'</span>,get(handles.field_ID,<span class="string">'String'</span>), <span class="keyword">...</span>
0578             <span class="string">'timeout'</span>,handles.timeout);
0579         delete(hDial);
0580         clear hDial;
0581         <span class="keyword">if</span> (~<a href="#_sub54" class="code" title="subfunction [isOkay] = checkDASCommand(xmlS,status)">checkDASCommand</a>(xmlS,status))
0582             <span class="keyword">return</span>;
0583         <span class="keyword">end</span>
0584         <a href="#_sub88" class="code" title="subfunction setResultsFields(hObject,handles,xml,url)">setResultsFields</a>(hObject,handles,xml,url);
0585         
0586     <span class="keyword">case</span> <span class="string">'dna'</span>
0587         <span class="keyword">if</span> (get(handles.popupmenu_SegDef,<span class="string">'Value'</span>) == 1)
0588             msgbox(<span class="string">'Define the segment type.'</span>,<span class="string">'Segment Type Requested'</span>,<span class="string">'warn'</span>);
0589             <span class="keyword">return</span> 
0590         <span class="keyword">end</span>
0591         
0592         
0593         <span class="keyword">if</span> (any(strcmpi(dataType,{<span class="string">'Chromosome'</span>,<span class="string">'Clone'</span>, <span class="string">'Contig'</span>, <span class="string">'NT_Contig'</span>, <span class="string">'Scaffold'</span>})) ) <span class="comment">%DNA segment</span>
0594 
0595             <span class="keyword">if</span> (isempty(get(handles.field_Chrom,<span class="string">'String'</span>)) || isempty(get(handles.field_Start,<span class="string">'String'</span>)) <span class="keyword">...</span>
0596                     || isempty(get(handles.field_Stop,<span class="string">'String'</span>)) )
0597                 msgbox(<span class="string">'Fill out the fields Chromosome, Start, Stop.'</span>,<span class="string">'Data Requested'</span>,<span class="string">'warn'</span>);
0598                 <span class="keyword">return</span>
0599             <span class="keyword">end</span>
0600             hDial = <a href="#_sub53" class="code" title="subfunction [hDial] = openRunningDialog">openRunningDialog</a>;
0601             [xmlS, xml, status,url] = executeDasCommand(handles.baseUrl,<span class="string">'command'</span>, <span class="string">'dna'</span>, <span class="string">'DSN'</span>, handles.dsn ,<span class="string">'chrom'</span>,get(handles.field_Chrom,<span class="string">'String'</span>), <span class="keyword">...</span>
0602                 <span class="string">'start'</span>,get(handles.field_Start,<span class="string">'String'</span>), <span class="string">'stop'</span>, get(handles.field_Stop,<span class="string">'String'</span>), <span class="string">'timeout'</span>,handles.timeout);
0603             delete(hDial);
0604             clear hDial;
0605             <span class="keyword">if</span> (~<a href="#_sub54" class="code" title="subfunction [isOkay] = checkDASCommand(xmlS,status)">checkDASCommand</a>(xmlS,status))
0606                 <span class="keyword">return</span>;
0607             <span class="keyword">end</span>
0608             <a href="#_sub88" class="code" title="subfunction setResultsFields(hObject,handles,xml,url)">setResultsFields</a>(hObject,handles,xml,url);    
0609             
0610         <span class="keyword">else</span> <span class="comment">%ID definition</span>
0611 
0612             <span class="keyword">if</span> (isempty(get(handles.field_ID,<span class="string">'String'</span>)))
0613                 msgbox(<span class="string">'Fill out ID'</span>,<span class="string">'Data Requested'</span>,<span class="string">'warn'</span>);
0614                 <span class="keyword">return</span>
0615             <span class="keyword">end</span>
0616             hDial = <a href="#_sub53" class="code" title="subfunction [hDial] = openRunningDialog">openRunningDialog</a>;
0617             [xmlS, xml, status,url] = executeDasCommand(handles.baseUrl,<span class="string">'command'</span>, <span class="string">'dna'</span>, <span class="string">'DSN'</span>, handles.dsn ,<span class="string">'segment'</span>,get(handles.field_ID,<span class="string">'String'</span>), <span class="keyword">...</span>
0618                      <span class="string">'timeout'</span>,handles.timeout);
0619             delete(hDial);
0620             clear hDial;
0621             <span class="keyword">if</span> (~<a href="#_sub54" class="code" title="subfunction [isOkay] = checkDASCommand(xmlS,status)">checkDASCommand</a>(xmlS,status))
0622                 <span class="keyword">return</span>;
0623             <span class="keyword">end</span>
0624             <a href="#_sub88" class="code" title="subfunction setResultsFields(hObject,handles,xml,url)">setResultsFields</a>(hObject,handles,xml,url);
0625         <span class="keyword">end</span>
0626         
0627     <span class="keyword">case</span> <span class="string">'sequence'</span>
0628         
0629         <span class="keyword">if</span> (get(handles.popupmenu_SegDef,<span class="string">'Value'</span>) == 1)
0630             msgbox(<span class="string">'Define the segment type.'</span>,<span class="string">'Segment Type Requested'</span>,<span class="string">'warn'</span>);
0631             <span class="keyword">return</span> 
0632         <span class="keyword">end</span>
0633         
0634        
0635         <span class="keyword">if</span> (any(strcmpi(dataType,{<span class="string">'Chromosome'</span>,<span class="string">'Clone'</span>, <span class="string">'Contig'</span>, <span class="string">'NT_Contig'</span>, <span class="string">'Scaffold'</span>})) ) <span class="comment">%DNA segment</span>
0636 
0637             <span class="keyword">if</span> (isempty(get(handles.field_Chrom,<span class="string">'String'</span>)) || isempty(get(handles.field_Start,<span class="string">'String'</span>)) <span class="keyword">...</span>
0638                     || isempty(get(handles.field_Stop,<span class="string">'String'</span>)) )
0639                 msgbox(<span class="string">'Fill out the fields Chromosome, Start, Stop.'</span>,<span class="string">'Data Requested'</span>,<span class="string">'warn'</span>);
0640                 <span class="keyword">return</span>
0641             <span class="keyword">end</span>
0642             hDial = <a href="#_sub53" class="code" title="subfunction [hDial] = openRunningDialog">openRunningDialog</a>;
0643             [xmlS, xml, status,url] = executeDasCommand(handles.baseUrl,<span class="string">'command'</span>, <span class="string">'sequence'</span>, <span class="string">'DSN'</span>, handles.dsn ,<span class="string">'chrom'</span>,get(handles.field_Chrom,<span class="string">'String'</span>), <span class="keyword">...</span>
0644                 <span class="string">'start'</span>,get(handles.field_Start,<span class="string">'String'</span>), <span class="string">'stop'</span>, get(handles.field_Stop,<span class="string">'String'</span>), <span class="string">'timeout'</span>,handles.timeout);
0645             delete(hDial);
0646             clear hDial;
0647             
0648             <span class="keyword">if</span> (~<a href="#_sub54" class="code" title="subfunction [isOkay] = checkDASCommand(xmlS,status)">checkDASCommand</a>(xmlS,status))
0649                 <span class="keyword">return</span>;
0650             <span class="keyword">end</span>
0651             
0652             <a href="#_sub88" class="code" title="subfunction setResultsFields(hObject,handles,xml,url)">setResultsFields</a>(hObject,handles,xml,url);
0653             
0654         <span class="keyword">else</span> <span class="comment">%ID definition</span>
0655 
0656             <span class="keyword">if</span> (isempty(get(handles.field_ID,<span class="string">'String'</span>)))
0657                 msgbox(<span class="string">'Fill out ID'</span>,<span class="string">'Data Requested'</span>,<span class="string">'warn'</span>);
0658                 <span class="keyword">return</span>
0659             <span class="keyword">end</span>
0660             hDial = <a href="#_sub53" class="code" title="subfunction [hDial] = openRunningDialog">openRunningDialog</a>;
0661             [xmlS, xml, status,url] = executeDasCommand(handles.baseUrl,<span class="string">'command'</span>, <span class="string">'sequence'</span>, <span class="string">'DSN'</span>, handles.dsn ,<span class="string">'segment'</span>,get(handles.field_ID,<span class="string">'String'</span>), <span class="keyword">...</span>
0662                 <span class="string">'timeout'</span>,handles.timeout);
0663 
0664             delete(hDial);
0665             clear hDial;
0666             
0667             <span class="keyword">if</span> (~<a href="#_sub54" class="code" title="subfunction [isOkay] = checkDASCommand(xmlS,status)">checkDASCommand</a>(xmlS,status))
0668                 <span class="keyword">return</span>;
0669             <span class="keyword">end</span>
0670 
0671            <a href="#_sub88" class="code" title="subfunction setResultsFields(hObject,handles,xml,url)">setResultsFields</a>(hObject,handles,xml,url);
0672 
0673         <span class="keyword">end</span>
0674         
0675     <span class="keyword">case</span> <span class="string">'types'</span>
0676         <span class="keyword">if</span> (get(handles.popupmenu_SegDef,<span class="string">'Value'</span>) == 1)
0677             msgbox(<span class="string">'Define the segment type.'</span>,<span class="string">'Segment Type Requested'</span>,<span class="string">'warn'</span>);
0678             <span class="keyword">return</span> 
0679         <span class="keyword">end</span>
0680         
0681        
0682         <span class="keyword">if</span> (any(strcmpi(dataType,{<span class="string">'Chromosome'</span>,<span class="string">'Clone'</span>, <span class="string">'Contig'</span>, <span class="string">'NT_Contig'</span>, <span class="string">'Scaffold'</span>})) ) <span class="comment">%DNA segment</span>
0683             
0684             <span class="keyword">if</span> (isempty(get(handles.field_Chrom,<span class="string">'String'</span>)) || isempty(get(handles.field_Start,<span class="string">'String'</span>)) <span class="keyword">...</span>
0685                     || isempty(get(handles.field_Stop,<span class="string">'String'</span>)) )
0686                 msgbox(<span class="string">'Fill out the fields Chromosome, Start, Stop.'</span>,<span class="string">'Data Requested'</span>,<span class="string">'warn'</span>);
0687                 <span class="keyword">return</span>
0688             <span class="keyword">end</span>
0689             hDial = <a href="#_sub53" class="code" title="subfunction [hDial] = openRunningDialog">openRunningDialog</a>;
0690             [xmlS, xml, status,url] = executeDasCommand(handles.baseUrl,<span class="string">'command'</span>, <span class="string">'types'</span>, <span class="string">'DSN'</span>, handles.dsn ,<span class="string">'chrom'</span>,get(handles.field_Chrom,<span class="string">'String'</span>), <span class="keyword">...</span>
0691                 <span class="string">'start'</span>,get(handles.field_Start,<span class="string">'String'</span>), <span class="string">'stop'</span>, get(handles.field_Stop,<span class="string">'String'</span>), <span class="string">'timeout'</span>,handles.timeout);
0692 
0693             delete(hDial);
0694             clear hDial;
0695             
0696             <span class="keyword">if</span> (~<a href="#_sub54" class="code" title="subfunction [isOkay] = checkDASCommand(xmlS,status)">checkDASCommand</a>(xmlS,status))
0697                 <span class="keyword">return</span>;
0698             <span class="keyword">end</span>
0699             
0700             <a href="#_sub88" class="code" title="subfunction setResultsFields(hObject,handles,xml,url)">setResultsFields</a>(hObject,handles,xml,url);
0701             
0702         <span class="keyword">else</span> <span class="comment">%ID definition</span>
0703 
0704             <span class="keyword">if</span> (isempty(get(handles.field_ID,<span class="string">'String'</span>)))
0705                 msgbox(<span class="string">'Fill out ID'</span>,<span class="string">'Data Requested'</span>,<span class="string">'warn'</span>);
0706                 <span class="keyword">return</span>
0707             <span class="keyword">end</span>
0708             hDial = <a href="#_sub53" class="code" title="subfunction [hDial] = openRunningDialog">openRunningDialog</a>;
0709             [xmlS, xml, status,url] = executeDasCommand(handles.baseUrl,<span class="string">'command'</span>, <span class="string">'types'</span>, <span class="string">'DSN'</span>, handles.dsn ,<span class="string">'segment'</span>,get(handles.field_ID,<span class="string">'String'</span>), <span class="keyword">...</span>
0710                 <span class="string">'timeout'</span>,handles.timeout);
0711             delete(hDial);
0712             clear hDial;
0713             
0714             <span class="keyword">if</span> (~<a href="#_sub54" class="code" title="subfunction [isOkay] = checkDASCommand(xmlS,status)">checkDASCommand</a>(xmlS,status))
0715                 <span class="keyword">return</span>;
0716             <span class="keyword">end</span>
0717             
0718             <a href="#_sub88" class="code" title="subfunction setResultsFields(hObject,handles,xml,url)">setResultsFields</a>(hObject,handles,xml,url);
0719         <span class="keyword">end</span>
0720         
0721     <span class="keyword">case</span> <span class="string">'features'</span>
0722         <a href="queryFeatures.html" class="code" title="function queryFeatures(hObject,handles)">queryFeatures</a>(hObject,handles);
0723     <span class="keyword">case</span> <span class="string">'entry_points'</span>
0724         hDial = <a href="#_sub53" class="code" title="subfunction [hDial] = openRunningDialog">openRunningDialog</a>;
0725         [xmlS, xml, status, url] = <a href="executeDASCommand.html" class="code" title="function [xmlStruct, xml,status,dasUrl] = executeDASCommand(serverURL,varargin)">executeDASCommand</a>(handles.baseUrl,<span class="string">'command'</span>,<span class="string">'entry_points'</span>,<span class="string">'DSN'</span>,handles.dsn, <span class="string">'timeout'</span>,handles.timeout );
0726         delete(hDial);
0727         clear hDial;
0728         
0729         <span class="keyword">if</span> (~<a href="#_sub54" class="code" title="subfunction [isOkay] = checkDASCommand(xmlS,status)">checkDASCommand</a>(xmlS,status))
0730             <span class="keyword">return</span>;
0731         <span class="keyword">end</span>
0732         <a href="#_sub88" class="code" title="subfunction setResultsFields(hObject,handles,xml,url)">setResultsFields</a>(hObject,handles,xml,url);
0733     <span class="keyword">case</span> <span class="string">'dsn'</span>
0734         hDial = <a href="#_sub53" class="code" title="subfunction [hDial] = openRunningDialog">openRunningDialog</a>;
0735         [xmlS, xml, status,url] = <a href="executeDASCommand.html" class="code" title="function [xmlStruct, xml,status,dasUrl] = executeDASCommand(serverURL,varargin)">executeDASCommand</a>(handles.baseUrl,<span class="string">'command'</span>,<span class="string">'dsn'</span>,<span class="string">'timeout'</span>,handles.timeout);
0736         delete(hDial);
0737         clear hDial;
0738         
0739         <span class="keyword">if</span> (~<a href="#_sub54" class="code" title="subfunction [isOkay] = checkDASCommand(xmlS,status)">checkDASCommand</a>(xmlS,status))
0740             <span class="keyword">return</span>;
0741         <span class="keyword">end</span>
0742 
0743         <a href="#_sub88" class="code" title="subfunction setResultsFields(hObject,handles,xml,url)">setResultsFields</a>(hObject,handles,xml,url);
0744     <span class="keyword">case</span> <span class="string">'stylesheet'</span>
0745         
0746         hDial = <a href="#_sub53" class="code" title="subfunction [hDial] = openRunningDialog">openRunningDialog</a>;
0747         [xmlS, xml, status,url] = <a href="executeDASCommand.html" class="code" title="function [xmlStruct, xml,status,dasUrl] = executeDASCommand(serverURL,varargin)">executeDASCommand</a>(handles.baseUrl,<span class="string">'command'</span>,<span class="string">'stylesheet'</span>,<span class="string">'DSN'</span>,handles.dsn, <span class="string">'timeout'</span>,handles.timeout );
0748         delete(hDial);
0749         clear hDial;
0750         
0751         <span class="keyword">if</span> (~<a href="#_sub54" class="code" title="subfunction [isOkay] = checkDASCommand(xmlS,status)">checkDASCommand</a>(xmlS,status))
0752             <span class="keyword">return</span>;
0753         <span class="keyword">end</span>
0754 
0755        <a href="#_sub88" class="code" title="subfunction setResultsFields(hObject,handles,xml,url)">setResultsFields</a>(hObject,handles,xml,url);
0756 
0757 <span class="keyword">end</span>
0758 
0759 
0760 <span class="comment">% --- Executes on selection change in popupmenu_Comm.</span>
0761 <a name="_sub29" href="#_subfunctions" class="code">function popupmenu_Comm_Callback(hObject, eventdata, handles)</a>
0762 <span class="comment">% hObject    handle to popupmenu_Comm (see GCBO)</span>
0763 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0764 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
0765 
0766 <span class="comment">% Hints: contents = get(hObject,'String') returns popupmenu_Comm contents as cell array</span>
0767 <span class="comment">%        contents{get(hObject,'Value')} returns selected item from popupmenu_Comm</span>
0768 
0769 <a href="#_sub50" class="code" title="subfunction resetFeatPanel(handles)">resetFeatPanel</a>(handles);
0770 <a href="#_sub49" class="code" title="subfunction resetSegmPanel(handles)">resetSegmPanel</a>(handles);
0771 <a href="#_sub48" class="code" title="subfunction resetXMLDispPanel(handles)">resetXMLDispPanel</a>(handles);
0772 
0773 str = get(hObject, <span class="string">'String'</span>);
0774 val = get(hObject,<span class="string">'Value'</span>);
0775 handles.command = str{val};
0776 
0777 <span class="keyword">if</span> (any(strcmpi(handles.command,{<span class="string">'dna'</span>,<span class="string">'sequence'</span>, <span class="string">'types'</span>, <span class="string">'features'</span>,<span class="string">'structure'</span>,<span class="string">'alignment'</span>,<span class="string">'interaction'</span>})) ) <span class="comment">%open Segment definitions panel</span>
0778     <a href="#_sub72" class="code" title="subfunction populateSegDefMenu(handles)">populateSegDefMenu</a>(handles);
0779     set(handles.uipanel_Segm,<span class="string">'Visible'</span>,<span class="string">'on'</span>);
0780 <span class="keyword">end</span>
0781 
0782 <span class="comment">% --- Executes during object creation, after setting all properties.</span>
0783 <a name="_sub30" href="#_subfunctions" class="code">function popupmenu_Comm_CreateFcn(hObject, eventdata, handles)</a>
0784 <span class="comment">% hObject    handle to popupmenu_Comm (see GCBO)</span>
0785 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0786 <span class="comment">% handles    empty - handles not created until after all CreateFcns called</span>
0787 
0788 <span class="comment">% Hint: popupmenu controls usually have a white background on Windows.</span>
0789 <span class="comment">%       See ISPC and COMPUTER.</span>
0790 <span class="keyword">if</span> ispc &amp;&amp; isequal(get(hObject,<span class="string">'BackgroundColor'</span>), get(0,<span class="string">'defaultUicontrolBackgroundColor'</span>))
0791     set(hObject,<span class="string">'BackgroundColor'</span>,<span class="string">'white'</span>);
0792 <span class="keyword">end</span>
0793 
0794 
0795 <a name="_sub31" href="#_subfunctions" class="code">function field_XMLDisp_Callback(hObject, eventdata, handles)</a>
0796 <span class="comment">% hObject    handle to field_XMLDisp (see GCBO)</span>
0797 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0798 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
0799 
0800 <span class="comment">% Hints: get(hObject,'String') returns contents of field_XMLDisp as text</span>
0801 <span class="comment">%        str2double(get(hObject,'String')) returns contents of field_XMLDisp as a double</span>
0802 
0803 
0804 <span class="comment">% --- Executes during object creation, after setting all properties.</span>
0805 <a name="_sub32" href="#_subfunctions" class="code">function field_XMLDisp_CreateFcn(hObject, eventdata, handles)</a>
0806 <span class="comment">% hObject    handle to field_XMLDisp (see GCBO)</span>
0807 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0808 <span class="comment">% handles    empty - handles not created until after all CreateFcns called</span>
0809 
0810 <span class="comment">% Hint: edit controls usually have a white background on Windows.</span>
0811 <span class="comment">%       See ISPC and COMPUTER.</span>
0812 <span class="keyword">if</span> ispc &amp;&amp; isequal(get(hObject,<span class="string">'BackgroundColor'</span>), get(0,<span class="string">'defaultUicontrolBackgroundColor'</span>))
0813     set(hObject,<span class="string">'BackgroundColor'</span>,<span class="string">'white'</span>);
0814 <span class="keyword">end</span>
0815 
0816 
0817 
0818 
0819 <span class="comment">% --- Executes on slider movement.</span>
0820 <a name="_sub33" href="#_subfunctions" class="code">function slider3_Callback(hObject, eventdata, handles)</a>
0821 <span class="comment">% hObject    handle to slider3 (see GCBO)</span>
0822 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0823 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
0824 
0825 <span class="comment">% Hints: get(hObject,'Value') returns position of slider</span>
0826 <span class="comment">%        get(hObject,'Min') and get(hObject,'Max') to determine range of slider</span>
0827 
0828 
0829 <span class="comment">% --- Executes during object creation, after setting all properties.</span>
0830 <a name="_sub34" href="#_subfunctions" class="code">function slider3_CreateFcn(hObject, eventdata, handles)</a>
0831 <span class="comment">% hObject    handle to slider3 (see GCBO)</span>
0832 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0833 <span class="comment">% handles    empty - handles not created until after all CreateFcns called</span>
0834 
0835 <span class="comment">% Hint: slider controls usually have a light gray background.</span>
0836 <span class="keyword">if</span> isequal(get(hObject,<span class="string">'BackgroundColor'</span>), get(0,<span class="string">'defaultUicontrolBackgroundColor'</span>))
0837     set(hObject,<span class="string">'BackgroundColor'</span>,[.9 .9 .9]);
0838 <span class="keyword">end</span>
0839 
0840 
0841 
0842 
0843 <span class="comment">% --- Executes on button press in pushbutton_Reset.</span>
0844 <a name="_sub35" href="#_subfunctions" class="code">function pushbutton_Reset_Callback(hObject, eventdata, handles)</a>
0845 <span class="comment">% hObject    handle to pushbutton_Reset (see GCBO)</span>
0846 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0847 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
0848 
0849 <a href="#_sub50" class="code" title="subfunction resetFeatPanel(handles)">resetFeatPanel</a>(handles);
0850 <a href="#_sub49" class="code" title="subfunction resetSegmPanel(handles)">resetSegmPanel</a>(handles);
0851 <a href="#_sub48" class="code" title="subfunction resetXMLDispPanel(handles)">resetXMLDispPanel</a>(handles);
0852 <a href="#_sub64" class="code" title="subfunction resetServerPanel(handles)">resetServerPanel</a>(handles);
0853 set(handles.popupmenu_Server,<span class="string">'Value'</span>,1);
0854 
0855 
0856 <span class="comment">% --- Executes on button press in pushbutton_ClearDisplay.</span>
0857 <a name="_sub36" href="#_subfunctions" class="code">function pushbutton_ClearDisplay_Callback(hObject, eventdata, handles)</a>
0858 <span class="comment">% hObject    handle to pushbutton_ClearDisplay (see GCBO)</span>
0859 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0860 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
0861 <a href="#_sub48" class="code" title="subfunction resetXMLDispPanel(handles)">resetXMLDispPanel</a>(handles);
0862 
0863 
0864 
0865 
0866 <a name="_sub37" href="#_subfunctions" class="code">function field_Chrom_Callback(hObject, eventdata, handles)</a>
0867 <span class="comment">% hObject    handle to field_Chrom (see GCBO)</span>
0868 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0869 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
0870 
0871 <span class="comment">% Hints: get(hObject,'String') returns contents of field_Chrom as text</span>
0872 <span class="comment">%        str2double(get(hObject,'String')) returns contents of field_Chrom as a double</span>
0873 
0874 
0875 <span class="comment">% --- Executes during object creation, after setting all properties.</span>
0876 <a name="_sub38" href="#_subfunctions" class="code">function field_Chrom_CreateFcn(hObject, eventdata, handles)</a>
0877 <span class="comment">% hObject    handle to field_Chrom (see GCBO)</span>
0878 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0879 <span class="comment">% handles    empty - handles not created until after all CreateFcns called</span>
0880 
0881 <span class="comment">% Hint: edit controls usually have a white background on Windows.</span>
0882 <span class="comment">%       See ISPC and COMPUTER.</span>
0883 <span class="keyword">if</span> ispc &amp;&amp; isequal(get(hObject,<span class="string">'BackgroundColor'</span>), get(0,<span class="string">'defaultUicontrolBackgroundColor'</span>))
0884     set(hObject,<span class="string">'BackgroundColor'</span>,<span class="string">'white'</span>);
0885 <span class="keyword">end</span>
0886 
0887 
0888 
0889 <a name="_sub39" href="#_subfunctions" class="code">function edit13_Callback(hObject, eventdata, handles)</a>
0890 <span class="comment">% hObject    handle to field_Start (see GCBO)</span>
0891 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0892 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
0893 
0894 <span class="comment">% Hints: get(hObject,'String') returns contents of field_Start as text</span>
0895 <span class="comment">%        str2double(get(hObject,'String')) returns contents of field_Start as a double</span>
0896 
0897 
0898 <span class="comment">% --- Executes during object creation, after setting all properties.</span>
0899 <a name="_sub40" href="#_subfunctions" class="code">function edit13_CreateFcn(hObject, eventdata, handles)</a>
0900 <span class="comment">% hObject    handle to field_Start (see GCBO)</span>
0901 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0902 <span class="comment">% handles    empty - handles not created until after all CreateFcns called</span>
0903 
0904 <span class="comment">% Hint: edit controls usually have a white background on Windows.</span>
0905 <span class="comment">%       See ISPC and COMPUTER.</span>
0906 <span class="keyword">if</span> ispc &amp;&amp; isequal(get(hObject,<span class="string">'BackgroundColor'</span>), get(0,<span class="string">'defaultUicontrolBackgroundColor'</span>))
0907     set(hObject,<span class="string">'BackgroundColor'</span>,<span class="string">'white'</span>);
0908 <span class="keyword">end</span>
0909 
0910 
0911 
0912 <a name="_sub41" href="#_subfunctions" class="code">function edit14_Callback(hObject, eventdata, handles)</a>
0913 <span class="comment">% hObject    handle to field_Stop (see GCBO)</span>
0914 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0915 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
0916 
0917 <span class="comment">% Hints: get(hObject,'String') returns contents of field_Stop as text</span>
0918 <span class="comment">%        str2double(get(hObject,'String')) returns contents of field_Stop as a double</span>
0919 
0920 
0921 <span class="comment">% --- Executes during object creation, after setting all properties.</span>
0922 <a name="_sub42" href="#_subfunctions" class="code">function edit14_CreateFcn(hObject, eventdata, handles)</a>
0923 <span class="comment">% hObject    handle to field_Stop (see GCBO)</span>
0924 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0925 <span class="comment">% handles    empty - handles not created until after all CreateFcns called</span>
0926 
0927 <span class="comment">% Hint: edit controls usually have a white background on Windows.</span>
0928 <span class="comment">%       See ISPC and COMPUTER.</span>
0929 <span class="keyword">if</span> ispc &amp;&amp; isequal(get(hObject,<span class="string">'BackgroundColor'</span>), get(0,<span class="string">'defaultUicontrolBackgroundColor'</span>))
0930     set(hObject,<span class="string">'BackgroundColor'</span>,<span class="string">'white'</span>);
0931 <span class="keyword">end</span>
0932 
0933 <span class="comment">% --- Executes on selection change in popupmenu_FeatOptions.</span>
0934 <a name="_sub43" href="#_subfunctions" class="code">function popupmenu_FeatOptions_Callback(hObject, eventdata, handles)</a>
0935 <span class="comment">% hObject    handle to popupmenu_FeatOptions (see GCBO)</span>
0936 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0937 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
0938 
0939 <span class="comment">% Hints: contents = get(hObject,'String') returns popupmenu_FeatOptions contents as cell array</span>
0940 <span class="comment">%        contents{get(hObject,'Value')} returns selected item from popupmenu_FeatOptions</span>
0941 
0942 <span class="keyword">if</span> (get(hObject,<span class="string">'Value'</span>) &lt; 3)
0943     set(handles.uipanel_Feat,<span class="string">'Visible'</span>,<span class="string">'off'</span>);
0944 <span class="keyword">elseif</span> (get(hObject,<span class="string">'Value'</span>) == 3)
0945     <span class="keyword">if</span> (<a href="#_sub47" class="code" title="subfunction [status] = populateFeaturesList(handles)">populateFeaturesList</a>(handles))
0946         set(handles.uipanel_Feat,<span class="string">'Visible'</span>,<span class="string">'on'</span>);
0947     <span class="keyword">end</span>
0948 <span class="keyword">end</span>
0949     
0950 
0951 
0952 <span class="comment">% --- Executes during object creation, after setting all properties.</span>
0953 <a name="_sub44" href="#_subfunctions" class="code">function popupmenu_FeatOptions_CreateFcn(hObject, eventdata, handles)</a>
0954 <span class="comment">% hObject    handle to popupmenu_FeatOptions (see GCBO)</span>
0955 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0956 <span class="comment">% handles    empty - handles not created until after all CreateFcns called</span>
0957 
0958 <span class="comment">% Hint: popupmenu controls usually have a white background on Windows.</span>
0959 <span class="comment">%       See ISPC and COMPUTER.</span>
0960 <span class="keyword">if</span> ispc &amp;&amp; isequal(get(hObject,<span class="string">'BackgroundColor'</span>), get(0,<span class="string">'defaultUicontrolBackgroundColor'</span>))
0961     set(hObject,<span class="string">'BackgroundColor'</span>,<span class="string">'white'</span>);
0962 <span class="keyword">end</span>
0963 
0964 
0965 
0966 
0967 <span class="comment">% --- Executes on selection change in popupmenu_FeatOptions2.</span>
0968 <a name="_sub45" href="#_subfunctions" class="code">function popupmenu_FeatOptions2_Callback(hObject, eventdata, handles)</a>
0969 <span class="comment">% hObject    handle to popupmenu_FeatOptions2 (see GCBO)</span>
0970 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0971 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
0972 
0973 <span class="comment">% Hints: contents = get(hObject,'String') returns popupmenu_FeatOptions2 contents as cell array</span>
0974 <span class="comment">%        contents{get(hObject,'Value')} returns selected item from popupmenu_FeatOptions2</span>
0975 <span class="keyword">if</span> (get(hObject,<span class="string">'Value'</span>) &lt; 3)
0976     set(handles.uipanel_Feat,<span class="string">'Visible'</span>,<span class="string">'off'</span>);
0977 <span class="keyword">elseif</span> (get(hObject,<span class="string">'Value'</span>) == 3)
0978     <span class="keyword">if</span> (<a href="#_sub47" class="code" title="subfunction [status] = populateFeaturesList(handles)">populateFeaturesList</a>(handles))
0979         set(handles.uipanel_Feat,<span class="string">'Visible'</span>,<span class="string">'on'</span>);
0980     <span class="keyword">end</span>
0981 <span class="keyword">end</span>
0982 
0983 <span class="comment">% --- Executes during object creation, after setting all properties.</span>
0984 <a name="_sub46" href="#_subfunctions" class="code">function popupmenu_FeatOptions2_CreateFcn(hObject, eventdata, handles)</a>
0985 <span class="comment">% hObject    handle to popupmenu_FeatOptions2 (see GCBO)</span>
0986 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0987 <span class="comment">% handles    empty - handles not created until after all CreateFcns called</span>
0988 
0989 <span class="comment">% Hint: popupmenu controls usually have a white background on Windows.</span>
0990 <span class="comment">%       See ISPC and COMPUTER.</span>
0991 <span class="keyword">if</span> ispc &amp;&amp; isequal(get(hObject,<span class="string">'BackgroundColor'</span>), get(0,<span class="string">'defaultUicontrolBackgroundColor'</span>))
0992     set(hObject,<span class="string">'BackgroundColor'</span>,<span class="string">'white'</span>);
0993 <span class="keyword">end</span>
0994 
0995 
0996 <a name="_sub47" href="#_subfunctions" class="code">function [status] = populateFeaturesList(handles)</a>
0997 
0998 status = 1;
0999 <span class="keyword">if</span> (get(handles.popupmenu_SegDef,<span class="string">'Value'</span>) == 1)
1000     msgbox(<span class="string">'Define the segment type.'</span>,<span class="string">'Segment Type Requested'</span>,<span class="string">'warn'</span>);
1001     <span class="keyword">return</span> 
1002 <span class="keyword">end</span>
1003 
1004 contents = get(handles.popupmenu_SegDef, <span class="string">'String'</span>);
1005 val = get(handles.popupmenu_SegDef,<span class="string">'Value'</span>);
1006        
1007 <span class="keyword">if</span> (any(strcmpi(contents{val},{<span class="string">'Chromosome'</span>,<span class="string">'Clone'</span>, <span class="string">'Contig'</span>, <span class="string">'NT_Contig'</span>, <span class="string">'Scaffold'</span>})) ) <span class="comment">%DNA definitions panel is selected</span>
1008 
1009     <span class="keyword">if</span> (isempty(get(handles.field_Chrom,<span class="string">'String'</span>)) || isempty(get(handles.field_Start,<span class="string">'String'</span>)) <span class="keyword">...</span>
1010             || isempty(get(handles.field_Stop,<span class="string">'String'</span>)) )
1011         msgbox(<span class="string">'Fill out the fields Chromosome, Start, Stop.'</span>,<span class="string">'Data Requested'</span>,<span class="string">'warn'</span>);
1012         status = 0;
1013         <span class="keyword">return</span>
1014     <span class="keyword">end</span>
1015     hDial = <a href="#_sub53" class="code" title="subfunction [hDial] = openRunningDialog">openRunningDialog</a>;
1016     [xmlS, xml, status] = executeDasCommand(handles.baseUrl,<span class="string">'command'</span>, <span class="string">'types'</span>, <span class="string">'DSN'</span>, handles.dsn ,<span class="string">'chrom'</span>,get(handles.field_Chrom,<span class="string">'String'</span>), <span class="keyword">...</span>
1017         <span class="string">'start'</span>,get(handles.field_Start,<span class="string">'String'</span>), <span class="string">'stop'</span>, get(handles.field_Stop,<span class="string">'String'</span>), <span class="string">'timeout'</span>,handles.timeout);
1018     delete(hDial);
1019     clear hDial;
1020     
1021     <span class="keyword">if</span> (~<a href="#_sub54" class="code" title="subfunction [isOkay] = checkDASCommand(xmlS,status)">checkDASCommand</a>(xmlS,status))
1022         <span class="keyword">return</span>;
1023     <span class="keyword">end</span>
1024 
1025 <span class="keyword">elseif</span> (any(strcmpi(contents{val},{<span class="string">'Protein Sequence'</span>,<span class="string">'Protein Structure'</span>, <span class="string">'Volume Map'</span>})) ) <span class="comment">%ID definitions panel</span>
1026 
1027     <span class="keyword">if</span> (isempty(get(handles.field_ID,<span class="string">'String'</span>)))
1028         msgbox(<span class="string">'Fill out ID'</span>,<span class="string">'Data Requested'</span>,<span class="string">'warn'</span>);
1029         status = 0;
1030         <span class="keyword">return</span>
1031     <span class="keyword">end</span>
1032     hDial = <a href="#_sub53" class="code" title="subfunction [hDial] = openRunningDialog">openRunningDialog</a>;
1033     [xmlS, xml, status] = executeDasCommand(handles.baseUrl,<span class="string">'command'</span>, <span class="string">'types'</span>, <span class="string">'DSN'</span>, handles.dsn ,<span class="string">'segment'</span>,get(handles.field_ID,<span class="string">'String'</span>), <span class="keyword">...</span>
1034         <span class="string">'timeout'</span>,handles.timeout);
1035     delete(hDial);
1036     clear hDial;
1037     
1038     <span class="keyword">if</span> (~<a href="#_sub54" class="code" title="subfunction [isOkay] = checkDASCommand(xmlS,status)">checkDASCommand</a>(xmlS,status))
1039         <span class="keyword">return</span>;
1040     <span class="keyword">end</span>
1041 
1042 <span class="keyword">end</span>
1043 
1044 <span class="comment">%Populate features list</span>
1045 features = <a href="parseTypes.html" class="code" title="function [features]= parseTypes(dasXML)">parseTypes</a>(xml);
1046 nFeatures = numel(features);
1047 strOptions = <span class="string">'Choose Features ...'</span>;
1048 
1049 <span class="keyword">for</span> i=1:nFeatures
1050     strOptions = strvcat(strOptions, features(i).id);
1051 <span class="keyword">end</span>
1052 set(handles.listbox_Feat,<span class="string">'String'</span>,cellstr(strOptions));
1053 set(handles.listbox_Feat,<span class="string">'Value'</span>,1);
1054 
1055 <a name="_sub48" href="#_subfunctions" class="code">function resetXMLDispPanel(handles)</a>
1056 set(handles.field_XMLDisp,<span class="string">'String'</span>,<span class="string">''</span>);
1057 set(handles.field_queryURL,<span class="string">'String'</span>,<span class="string">''</span>);
1058 
1059 <a name="_sub49" href="#_subfunctions" class="code">function resetSegmPanel(handles)</a>
1060 set(handles.field_Chrom,<span class="string">'String'</span>,<span class="string">''</span>);
1061 set(handles.field_ID,<span class="string">'String'</span>,<span class="string">''</span>);
1062 set(handles.field_Start,<span class="string">'String'</span>,<span class="string">''</span>);
1063 set(handles.field_Stop,<span class="string">'String'</span>,<span class="string">''</span>);
1064 set(handles.popupmenu_FeatOptions,<span class="string">'Value'</span>,1);
1065 set(handles.popupmenu_FeatOptions2,<span class="string">'Value'</span>,1);
1066 set(handles.popupmenu_FeatOptions,<span class="string">'Visible'</span>,<span class="string">'off'</span>);
1067 set(handles.popupmenu_FeatOptions2,<span class="string">'Visible'</span>,<span class="string">'off'</span>);
1068 set(handles.uipanel_DNAdefinitions,<span class="string">'Visible'</span>,<span class="string">'off'</span>);
1069 set(handles.uipanel_IDdefinition,<span class="string">'Visible'</span>,<span class="string">'off'</span>);
1070 set(handles.uipanel_Segm,<span class="string">'Visible'</span>,<span class="string">'off'</span>);
1071 set(handles.popupmenu_SegDef,<span class="string">'String'</span>,<span class="string">''</span>);
1072 
1073 <a name="_sub50" href="#_subfunctions" class="code">function resetFeatPanel(handles)</a>
1074 set(handles.uipanel_Feat,<span class="string">'Visible'</span>,<span class="string">'off'</span>);
1075 set(handles.listbox_Feat,<span class="string">'String'</span>,{<span class="string">'Select Features available ...'</span>});
1076 
1077 <a name="_sub51" href="#_subfunctions" class="code">function resetIDdefPanel(handles)</a>
1078 set(handles.field_ID,<span class="string">'String'</span>,<span class="string">''</span>);
1079 set(handles.popupmenu_FeatOptions,<span class="string">'Value'</span>,1);
1080 
1081 <a name="_sub52" href="#_subfunctions" class="code">function resetDNAdefPanel(handles)</a>
1082 set(handles.popupmenu_FeatOptions2,<span class="string">'Value'</span>,1);
1083 set(handles.field_Chrom,<span class="string">'String'</span>,<span class="string">''</span>);
1084 set(handles.field_Start,<span class="string">'String'</span>,<span class="string">''</span>);
1085 set(handles.field_Stop,<span class="string">'String'</span>,<span class="string">''</span>);
1086 
1087 <a name="_sub53" href="#_subfunctions" class="code">function [hDial] = openRunningDialog</a>
1088 hDial = <a href="showinfowindow.html" class="code" title="function f = showinfowindow(msg,wtitle,handleDispGUI)">showinfowindow</a>({<span class="string">'Connecting to the server ...'</span>,<span class="string">'Running request...'</span>},<span class="string">'Please wait ...'</span>);
1089 <span class="comment">%set(hDial,'CloseRequestFcn','');</span>
1090 t = get(hDial,<span class="string">'Position'</span>);
1091 set(hDial,<span class="string">'Position'</span>,t)
1092 
1093 <a name="_sub54" href="#_subfunctions" class="code">function [isOkay] = checkDASCommand(xmlS,status)</a>
1094         
1095 isOkay = 1;
1096 <span class="keyword">if</span> (~status)
1097     msgbox(<span class="string">'DAS Server is taking too long to respond. Increase timeout and try again.'</span>,<span class="string">'DAS Server not responding'</span>,<span class="string">'warn'</span>);
1098     isOkay = 0;
1099     <span class="keyword">return</span>;
1100 <span class="keyword">end</span>
1101 
1102 <span class="keyword">if</span> (~isstruct(xmlS))
1103     msgbox(<span class="string">'Problem Parsing XML DAS Response'</span>,<span class="string">'Bad Parsing'</span>,<span class="string">'warn'</span>);
1104     isOkay = 0;
1105     <span class="keyword">return</span>;
1106 <span class="keyword">end</span>
1107 
1108 
1109 
1110 
1111 <a name="_sub55" href="#_subfunctions" class="code">function field_timeout_Callback(hObject, eventdata, handles)</a>
1112 <span class="comment">% hObject    handle to field_timeout (see GCBO)</span>
1113 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
1114 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
1115 
1116 <span class="comment">% Hints: get(hObject,'String') returns contents of field_timeout as text</span>
1117 <span class="comment">%        str2double(get(hObject,'String')) returns contents of field_timeout as a double</span>
1118 
1119 
1120 <span class="comment">% --- Executes during object creation, after setting all properties.</span>
1121 <a name="_sub56" href="#_subfunctions" class="code">function field_timeout_CreateFcn(hObject, eventdata, handles)</a>
1122 <span class="comment">% hObject    handle to field_timeout (see GCBO)</span>
1123 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
1124 <span class="comment">% handles    empty - handles not created until after all CreateFcns called</span>
1125 
1126 <span class="comment">% Hint: edit controls usually have a white background on Windows.</span>
1127 <span class="comment">%       See ISPC and COMPUTER.</span>
1128 <span class="keyword">if</span> ispc &amp;&amp; isequal(get(hObject,<span class="string">'BackgroundColor'</span>), get(0,<span class="string">'defaultUicontrolBackgroundColor'</span>))
1129     set(hObject,<span class="string">'BackgroundColor'</span>,<span class="string">'white'</span>);
1130 <span class="keyword">end</span>
1131 
1132 
1133 
1134 
1135 <span class="comment">% --- Executes on button press in pushbutton8.</span>
1136 <a name="_sub57" href="#_subfunctions" class="code">function pushbutton8_Callback(hObject, eventdata, handles)</a>
1137 <span class="comment">% hObject    handle to pushbutton8 (see GCBO)</span>
1138 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
1139 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
1140 
1141 
1142 
1143 
1144 <span class="comment">% --- Executes during object creation, after setting all properties.</span>
1145 <a name="_sub58" href="#_subfunctions" class="code">function figure1_CreateFcn(hObject, eventdata, handles)</a>
1146 <span class="comment">% hObject    handle to figure1 (see GCBO)</span>
1147 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
1148 <span class="comment">% handles    empty - handles not created until after all CreateFcns called</span>
1149 <span class="comment">%movegui(hObject,'center');</span>
1150 
1151 
1152 
1153 <span class="comment">% --- Executes when user attempts to close figure1.</span>
1154 <a name="_sub59" href="#_subfunctions" class="code">function figure1_CloseRequestFcn(hObject, eventdata, handles)</a>
1155 <span class="comment">% hObject    handle to figure1 (see GCBO)</span>
1156 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
1157 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
1158 
1159 <span class="comment">% Hint: delete(hObject) closes the figure</span>
1160 <a href="#_sub60" class="code" title="subfunction closeGUI(src,evnt)">closeGUI</a>(hObject,eventdata);
1161 
1162 <a name="_sub60" href="#_subfunctions" class="code">function closeGUI(src,evnt)</a>
1163 <span class="comment">%src is the handle of the object generating the callback (the source of the event)</span>
1164 <span class="comment">%evnt is the The event data structure (can be empty for some callbacks)</span>
1165 selection = questdlg(<span class="string">'Do you want to close DASMiner?'</span>,<span class="keyword">...</span>
1166                      <span class="string">'Close Request'</span>,<span class="keyword">...</span>
1167                      <span class="string">'Yes'</span>,<span class="string">'No'</span>,<span class="string">'Yes'</span>);
1168 <span class="keyword">switch</span> selection,
1169    <span class="keyword">case</span> <span class="string">'Yes'</span>,
1170     delete(gcf)
1171    <span class="keyword">case</span> <span class="string">'No'</span>
1172      <span class="keyword">return</span>
1173 <span class="keyword">end</span>
1174 
1175 
1176 
1177 
1178 <span class="comment">% --- If Enable == 'on', executes on mouse press in 5 pixel border.</span>
1179 <span class="comment">% --- Otherwise, executes on mouse press in 5 pixel border or over pushbutton_infoServer.</span>
1180 <a name="_sub61" href="#_subfunctions" class="code">function pushbutton_infoServer_ButtonDownFcn(hObject, eventdata, handles)</a>
1181 <span class="comment">% hObject    handle to pushbutton_infoServer (see GCBO)</span>
1182 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
1183 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
1184 
1185 
1186 <span class="comment">% --- Executes during object creation, after setting all properties.</span>
1187 <a name="_sub62" href="#_subfunctions" class="code">function pushbutton_Query_CreateFcn(hObject, eventdata, handles)</a>
1188 <span class="comment">% hObject    handle to pushbutton_Query (see GCBO)</span>
1189 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
1190 <span class="comment">% handles    empty - handles not created until after all CreateFcns called</span>
1191 [X,map] = imread(<span class="string">'./icons/Search.png'</span>,<span class="string">'BackgroundColor'</span>,[0.925 0.914 0.847]);
1192 set(hObject,<span class="string">'CData'</span>,X);
1193 
1194 
1195 
1196 <span class="comment">% --- Executes during object creation, after setting all properties.</span>
1197 <a name="_sub63" href="#_subfunctions" class="code">function pushbutton_infoServer_CreateFcn(hObject, eventdata, handles)</a>
1198 <span class="comment">% hObject    handle to pushbutton_infoServer (see GCBO)</span>
1199 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
1200 <span class="comment">% handles    empty - handles not created until after all CreateFcns called</span>
1201 [X,map] = imread(<span class="string">'./icons/Info.png'</span>,<span class="string">'BackgroundColor'</span>,[0.925 0.914 0.847]);
1202 set(hObject,<span class="string">'CData'</span>,X);
1203 
1204 <a name="_sub64" href="#_subfunctions" class="code">function resetServerPanel(handles)</a>
1205 
1206 set(handles.popupmenu_Comm,<span class="string">'Visible'</span>,<span class="string">'off'</span>);
1207 set(handles.popupmenu_Comm,<span class="string">'Value'</span>,1);
1208 set(handles.popupmenu_DSN,<span class="string">'Visible'</span>,<span class="string">'off'</span>);
1209 set(handles.popupmenu_DSN,<span class="string">'Value'</span>,1);
1210 set(handles.pushbutton_infoServer,<span class="string">'Visible'</span>,<span class="string">'off'</span>);
1211 set(handles.text_ServerDesc,<span class="string">'Visible'</span>,<span class="string">'off'</span>);
1212 set(handles.text_ServerDesc,<span class="string">'String'</span>,<span class="string">''</span>);
1213 
1214 
1215 
1216 <span class="comment">% --- Executes on button press in pushbutton_infoServer.</span>
1217 <a name="_sub65" href="#_subfunctions" class="code">function pushbutton_infoServer_Callback(hObject, eventdata, handles)</a>
1218 <span class="comment">% hObject    handle to pushbutton_infoServer (see GCBO)</span>
1219 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
1220 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
1221 web([<span class="string">'http://www.dasregistry.org/showdetails.jsp?auto_id='</span> handles.serverURI],<span class="string">'-browser'</span>);
1222 
1223 
1224 <span class="comment">% --- Executes during object creation, after setting all properties.</span>
1225 <a name="_sub66" href="#_subfunctions" class="code">function pushbutton_Reset_CreateFcn(hObject, eventdata, handles)</a>
1226 <span class="comment">% hObject    handle to pushbutton_Reset (see GCBO)</span>
1227 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
1228 <span class="comment">% handles    empty - handles not created until after all CreateFcns called</span>
1229 [X,map] = imread(<span class="string">'./icons/Back.png'</span>,<span class="string">'BackgroundColor'</span>,[0.925 0.914 0.847]);
1230 set(hObject,<span class="string">'CData'</span>,X);
1231 
1232 
1233 
1234 <span class="comment">% --- Executes during object creation, after setting all properties.</span>
1235 <a name="_sub67" href="#_subfunctions" class="code">function pushbutton_ClearDisplay_CreateFcn(hObject, eventdata, handles)</a>
1236 <span class="comment">% hObject    handle to pushbutton_ClearDisplay (see GCBO)</span>
1237 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
1238 <span class="comment">% handles    empty - handles not created until after all CreateFcns called</span>
1239 [X,map] = imread(<span class="string">'./icons/reload.png'</span>,<span class="string">'BackgroundColor'</span>,[0.925 0.914 0.847]);
1240 set(hObject,<span class="string">'CData'</span>,X);
1241 
1242 
1243 
1244 <span class="comment">% --- Executes on button press in pushbutton_SendBrowser.</span>
1245 <a name="_sub68" href="#_subfunctions" class="code">function pushbutton_SendBrowser_Callback(hObject, eventdata, handles)</a>
1246 <span class="comment">% hObject    handle to pushbutton_SendBrowser (see GCBO)</span>
1247 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
1248 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
1249 <span class="keyword">if</span> (isempty(get(handles.field_XMLDisp,<span class="string">'String'</span>)))
1250     <span class="keyword">return</span>;
1251 <span class="keyword">end</span>
1252 
1253 <span class="comment">%fid = fopen(fullfile(pwd,'fooXML.xml'),'w');</span>
1254 tmpFile = tempname;
1255 fid = fopen(tmpFile,<span class="string">'w'</span>);
1256 fprintf(fid,<span class="string">'%s'</span>,handles.currentXML);
1257 fclose(fid);
1258 <span class="comment">%web(['file:///' which('fooXML.xml')],'-browser');</span>
1259 web([<span class="string">'file:///'</span> tmpFile],<span class="string">'-browser'</span>);
1260 
1261 <span class="comment">% --- Executes on button press in pushbutton_SendXMLFile.</span>
1262 <a name="_sub69" href="#_subfunctions" class="code">function pushbutton_SendXMLFile_Callback(hObject, eventdata, handles)</a>
1263 <span class="comment">% hObject    handle to pushbutton_SendXMLFile (see GCBO)</span>
1264 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
1265 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
1266 <span class="keyword">if</span> (isempty(get(handles.field_XMLDisp,<span class="string">'String'</span>)))
1267     <span class="keyword">return</span>;
1268 <span class="keyword">end</span>
1269     
1270 [filename, pathname] = uiputfile({<span class="string">'*.xml'</span>,<span class="string">'XML Files (*.xml)'</span>;<span class="string">'*.*'</span>, <span class="string">'All Files'</span>},<span class="string">'Save XML File'</span>,<span class="keyword">...</span>
1271     strcat(pwd,<span class="string">'\newfile.xml'</span>));
1272 
1273 <span class="keyword">if</span> ( (strcmp(num2str(filename),<span class="string">'0'</span>)) &amp;&amp; (strcmp(num2str(pathname),<span class="string">'0'</span>)) )
1274     <span class="keyword">return</span>
1275 <span class="keyword">else</span>
1276 
1277     fid = fopen(fullfile(pathname,filename),<span class="string">'w'</span>);
1278     fprintf(fid,<span class="string">'%s'</span>,handles.currentXML);
1279     <span class="comment">%         for i=1:size(text,1)</span>
1280     <span class="comment">%             fprintf(fid,'%s',text(i,:));</span>
1281     <span class="comment">%         end</span>
1282 
1283     fclose(fid);
1284 <span class="keyword">end</span>
1285 
1286 <span class="comment">% --- Executes during object creation, after setting all properties.</span>
1287 <a name="_sub70" href="#_subfunctions" class="code">function pushbutton_SendBrowser_CreateFcn(hObject, eventdata, handles)</a>
1288 <span class="comment">% hObject    handle to pushbutton_SendBrowser (see GCBO)</span>
1289 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
1290 <span class="comment">% handles    empty - handles not created until after all CreateFcns called</span>
1291 [X,map] = imread(<span class="string">'./icons/connect.png'</span>,<span class="string">'BackgroundColor'</span>,[0.925 0.914 0.847]);
1292 set(hObject,<span class="string">'CData'</span>,X);
1293 
1294 
1295 
1296 <span class="comment">% --- Executes during object creation, after setting all properties.</span>
1297 <a name="_sub71" href="#_subfunctions" class="code">function pushbutton_SendXMLFile_CreateFcn(hObject, eventdata, handles)</a>
1298 <span class="comment">% hObject    handle to pushbutton_SendXMLFile (see GCBO)</span>
1299 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
1300 <span class="comment">% handles    empty - handles not created until after all CreateFcns called</span>
1301 [X,map] = imread(<span class="string">'./icons/save.png'</span>,<span class="string">'BackgroundColor'</span>,[0.925 0.914 0.847]);
1302 set(hObject,<span class="string">'CData'</span>,X);
1303 
1304 <a name="_sub72" href="#_subfunctions" class="code">function populateSegDefMenu(handles)</a>
1305 set(handles.popupmenu_SegDef,<span class="string">'String'</span>,[<span class="string">'Choose data type...'</span> handles.serverCoordinates]);
1306 set(handles.popupmenu_SegDef,<span class="string">'Value'</span>,1);
1307 
1308 
1309 <span class="comment">% --- Executes on button press in pushbutton_infoCS.</span>
1310 <a name="_sub73" href="#_subfunctions" class="code">function pushbutton_infoCS_Callback(hObject, eventdata, handles)</a>
1311 <span class="comment">% hObject    handle to pushbutton_infoCS (see GCBO)</span>
1312 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
1313 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
1314 web(get(hObject,<span class="string">'TooltipString'</span>),<span class="string">'-browser'</span>);
1315 
1316 
1317 <span class="comment">% --- Executes during object creation, after setting all properties.</span>
1318 <a name="_sub74" href="#_subfunctions" class="code">function pushbutton_infoCS_CreateFcn(hObject, eventdata, handles)</a>
1319 <span class="comment">% hObject    handle to pushbutton_infoCS (see GCBO)</span>
1320 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
1321 <span class="comment">% handles    empty - handles not created until after all CreateFcns called</span>
1322 [X,map] = imread(<span class="string">'./icons/info16x16.png'</span>,<span class="string">'BackgroundColor'</span>,[0.925 0.914 0.847]);
1323 set(hObject,<span class="string">'CData'</span>,X);
1324 
1325 <a name="_sub75" href="#_subfunctions" class="code">function configureInfoCSButton(handles,panel)</a>
1326 
1327 <span class="keyword">if</span> (any(strcmpi(<span class="string">'entry_points'</span>,handles.serverCapab)) &amp;&amp; strcmp(panel,<span class="string">'DNA Panel'</span>) )
1328     set(handles.pushbutton_infoCS,<span class="string">'TooltipString'</span>,strcat(handles.baseUrl,handles.dsn,<span class="string">'/entry_points?'</span>));
1329 <span class="keyword">elseif</span> (strcmp(panel,<span class="string">'DNA Panel'</span>))
1330     ind = get(handles.popupmenu_SegDef,<span class="string">'Value'</span>);
1331     set(handles.pushbutton_infoCS,<span class="string">'TooltipString'</span>,handles.serverCoordinatesURI{ind-1});
1332 <span class="keyword">elseif</span> (strcmp(panel,<span class="string">'ID Panel'</span>))
1333     ind = get(handles.popupmenu_SegDef,<span class="string">'Value'</span>);
1334     set(handles.pushbutton_infoCS2,<span class="string">'TooltipString'</span>,handles.serverCoordinatesURI{ind-1});
1335 <span class="keyword">end</span>
1336 
1337     
1338 <span class="comment">% --- Executes on button press in pushbutton_infoCS2.</span>
1339 <a name="_sub76" href="#_subfunctions" class="code">function pushbutton_infoCS2_Callback(hObject, eventdata, handles)</a>
1340 <span class="comment">% hObject    handle to pushbutton_infoCS2 (see GCBO)</span>
1341 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
1342 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
1343 web(get(hObject,<span class="string">'TooltipString'</span>),<span class="string">'-browser'</span>);
1344 
1345 <span class="comment">% --- Executes during object creation, after setting all properties.</span>
1346 <a name="_sub77" href="#_subfunctions" class="code">function pushbutton_infoCS2_CreateFcn(hObject, eventdata, handles)</a>
1347 <span class="comment">% hObject    handle to pushbutton_infoCS2 (see GCBO)</span>
1348 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
1349 <span class="comment">% handles    empty - handles not created until after all CreateFcns called</span>
1350 [X,map] = imread(<span class="string">'./icons/info16x16.png'</span>,<span class="string">'BackgroundColor'</span>,[0.925 0.914 0.847]);
1351 set(hObject,<span class="string">'CData'</span>,X);
1352 
1353 <span class="comment">% --- Executes when figure1 is resized.</span>
1354 <a name="_sub78" href="#_subfunctions" class="code">function figure1_ResizeFcn(hObject, eventdata, handles)</a>
1355 <span class="comment">% hObject    handle to figure1 (see GCBO)</span>
1356 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
1357 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
1358 
1359 <a name="_sub79" href="#_subfunctions" class="code">function resizeButtonImage(hButton,width,height)</a>
1360 
1361 set(hButton,<span class="string">'Units'</span>,<span class="string">'Pixels'</span>);
1362 pos = get(hButton,<span class="string">'Position'</span>);
1363 set(hButton,<span class="string">'Position'</span>,[pos(1) pos(2) width height]); <span class="comment">%set original pixel size</span>
1364 
1365 
1366 <span class="comment">% --- Executes on button press in pushbutton_getURL.</span>
1367 <a name="_sub80" href="#_subfunctions" class="code">function pushbutton_getURL_Callback(hObject, eventdata, handles)</a>
1368 <span class="comment">% hObject    handle to pushbutton_getURL (see GCBO)</span>
1369 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
1370 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
1371 
1372 str = sprintf(<span class="string">'[xmlS, xml, status] = executeDASCommand(\''null\'',\''queryURL\'',\''%s\'');'</span>,get(handles.field_queryURL,<span class="string">'String'</span>));
1373 assignin(<span class="string">'base'</span>, <span class="string">'DASquery'</span>, str);
1374 
1375 <span class="comment">% --- Executes during object creation, after setting all properties.</span>
1376 <a name="_sub81" href="#_subfunctions" class="code">function pushbutton_getURL_CreateFcn(hObject, eventdata, handles)</a>
1377 <span class="comment">% hObject    handle to pushbutton_getURL (see GCBO)</span>
1378 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
1379 <span class="comment">% handles    empty - handles not created until after all CreateFcns called</span>
1380 [X,map] = imread(<span class="string">'./icons/url.png'</span>,<span class="string">'BackgroundColor'</span>,[0.925 0.914 0.847]);
1381 set(hObject,<span class="string">'CData'</span>,X);
1382 
1383 
1384 
1385 <span class="comment">% --- Executes during object creation, after setting all properties.</span>
1386 <a name="_sub82" href="#_subfunctions" class="code">function uipanel_XMLDisp_CreateFcn(hObject, eventdata, handles)</a>
1387 <span class="comment">% hObject    handle to uipanel_XMLDisp (see GCBO)</span>
1388 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
1389 <span class="comment">% handles    empty - handles not created until after all CreateFcns called</span>
1390 
1391 
1392 <span class="comment">% --- Executes when uipanel_DasClient is resized.</span>
1393 <a name="_sub83" href="#_subfunctions" class="code">function uipanel_DasClient_ResizeFcn(hObject, eventdata, handles)</a>
1394 <span class="comment">% hObject    handle to uipanel_DasClient (see GCBO)</span>
1395 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
1396 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
1397 
1398 
1399 
1400 
1401 <span class="comment">% --- If Enable == 'on', executes on mouse press in 5 pixel border.</span>
1402 <span class="comment">% --- Otherwise, executes on mouse press in 5 pixel border or over pushbutton_Query.</span>
1403 <a name="_sub84" href="#_subfunctions" class="code">function pushbutton_Query_ButtonDownFcn(hObject, eventdata, handles)</a>
1404 <span class="comment">% hObject    handle to pushbutton_Query (see GCBO)</span>
1405 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
1406 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
1407 
1408 
1409 <span class="comment">% --- Executes on key press with focus on pushbutton_Query and none of its controls.</span>
1410 <a name="_sub85" href="#_subfunctions" class="code">function pushbutton_Query_KeyPressFcn(hObject, eventdata, handles)</a>
1411 <span class="comment">% hObject    handle to pushbutton_Query (see GCBO)</span>
1412 <span class="comment">% eventdata  structure with the following fields (see UICONTROL)</span>
1413 <span class="comment">%    Key: name of the key that was pressed, in lower case</span>
1414 <span class="comment">%    Character: character interpretation of the key(s) that was pressed</span>
1415 <span class="comment">%    Modifier: name(s) of the modifier key(s) (i.e., control, shift) pressed</span>
1416 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
1417 
1418 
1419 
1420 
1421 
1422 <a name="_sub86" href="#_subfunctions" class="code">function field_queryURL_Callback(hObject, eventdata, handles)</a>
1423 <span class="comment">% hObject    handle to field_queryURL (see GCBO)</span>
1424 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
1425 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
1426 
1427 <span class="comment">% Hints: get(hObject,'String') returns contents of field_queryURL as text</span>
1428 <span class="comment">%        str2double(get(hObject,'String')) returns contents of field_queryURL as a double</span>
1429 
1430 
1431 <span class="comment">% --- Executes during object creation, after setting all properties.</span>
1432 <a name="_sub87" href="#_subfunctions" class="code">function field_queryURL_CreateFcn(hObject, eventdata, handles)</a>
1433 <span class="comment">% hObject    handle to field_queryURL (see GCBO)</span>
1434 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
1435 <span class="comment">% handles    empty - handles not created until after all CreateFcns called</span>
1436 
1437 <span class="comment">% Hint: edit controls usually have a white background on Windows.</span>
1438 <span class="comment">%       See ISPC and COMPUTER.</span>
1439 <span class="keyword">if</span> ispc &amp;&amp; isequal(get(hObject,<span class="string">'BackgroundColor'</span>), get(0,<span class="string">'defaultUicontrolBackgroundColor'</span>))
1440     set(hObject,<span class="string">'BackgroundColor'</span>,<span class="string">'white'</span>);
1441 <span class="keyword">end</span>
1442 
1443 <a name="_sub88" href="#_subfunctions" class="code">function setResultsFields(hObject,handles,xml,url)</a>
1444 
1445 set(handles.field_XMLDisp,<span class="string">'String'</span>,xml);
1446 handles.currentXML = xml;
1447 set(handles.field_queryURL,<span class="string">'String'</span>,url);
1448 handles.currentURL = url;
1449 guidata(hObject,handles);
1450 
1451 
1452 
1453 <span class="comment">% --- Executes during object creation, after setting all properties.</span>
1454 <a name="_sub89" href="#_subfunctions" class="code">function dasMiner_logo_CreateFcn(hObject, eventdata, handles)</a>
1455 <span class="comment">% hObject    handle to dasMiner_logo (see GCBO)</span>
1456 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
1457 <span class="comment">% handles    empty - handles not created until after all CreateFcns called</span>
1458 
1459 <span class="comment">% Hint: place code in OpeningFcn to populate dasMiner_logo</span>
1460 <span class="comment">%axes(findobj('Tag','lala'))</span>
1461 axes(hObject)
1462 [X,map] = imread(<span class="string">'./icons/logo.png'</span>);
1463 imagesc(X)
1464 axis(hObject,<span class="string">'off'</span>);
1465</pre></div>
<hr><address>Generated on Tue 17-Feb-2009 16:59:45 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/">m2html</a></strong> &copy; 2003</address>
</body>
</html>